- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 7
- Posts with Upvotes
- 7
- Upvoting Members
- 7
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Freelance graphic designer / website developer
130 Posted Topics
Re: Sessions are set automatically by the server on page load, and the default life of a session is 20 minutes. If you are overriding this setting (which is acceptable) and you are setting it to ndays (which is highly unnacteptable) then you are putting an incredibly heavy load on your … | |
Re: If you need to implement an ecommerce solution then the sample codes will be provided by the payment gateway provider. The sample scripts and instructions will give you enough information to build your application. | |
Re: Adding the following parameter to your flash object: [code]<param name=wmode value="transparent">[/code] should work for most browsers. | |
Re: TRIM is a built-in function that removes white space from the start and end of a string. Variants of the function are LTRIM and RTRIM, to trim whitespace from only the left and right respectively. | |
Re: What type of script do you want? If you are just after a directory script they are all basically the same. Pick one and modify it as required. | |
Re: Maybe you can help us by showing the code that you are getting the error with? | |
Re: Juls - PHP has a built in function to convert line feeds to <br /> elements. It is nl2br, and it's use is: [PHP]echo( nl2br("this is a line\nthis is another line") ) /** prints as this is a line<br /> this is another line */[/PHP] ashwinperti - suggest you start … | |
Re: Comment out your error handling line in b.asp and you should at least get an error message. Also in a.html, input type=box is invalid and should be input type=text. | |
Re: [quote=tzan2833][code]<html> <body> <?php $host = "localhost"; $user = "user"; $pass = "hello"; $connect = mysql_connect($host, $user, $pass) or die("Could not connect to mysql server"); mysql_create_db("test") or mysql_error(); ?> </body> </html>[/code][/quote] There is no problem here, you are just not generating any content to display on the page. You will only … | |
Re: To host your own webserver you need to have a Static IP Address assigned to your PC/Server. This is set up by your ISP - at a fee! So contact your ISP and ask them about setting you up with a Static ISP. When you have one you can then … | |
Re: I would suggest that you check the output generated by your javascript. You will then see that the names of the hidden inputs are not being generated as you expect them. As an example, instead of name=c1, you will see name=c+i. Revise your document.write to: [CODE] document.write('<input size=35 type=hidden name=c'+i+ … | |
Re: You'll need to use a bit of conditional testing to build the appropriate sql string based on the submitted search terms. A simplified example shown below assumes the user can chooseto search on either firstname, lastname or both. [PHP]$fname = $_POST['firstname']; $lname = $_POST['lastname']; $where = array(); if (isset( $fname … | |
Re: There are a number of errors in your logic here. The first is that you are not storing the image in the database, just the local path name to it. I would suggest that you store your images in a directory, and a path to the image in the database. … | |
Re: You can't preload with CSS, but the images will be cached after first load. Depending on your server there are various ways to generate random backgrounds. I have a sample [URL="http://www.thought-after.com/2006/05/26/css-random-background-image-rotation/"]CSS Random Background Image[/URL] rotation script on my blog which may help you. | |
Re: [URL="http://www.connectionstrings.com/"]Connection Strings[/URL] is the best place to find all your db connection strings | |
Re: If the Yahoo site builder tool took up too much of your ram then Dreamweaver will kill you! Visit the [URL="http://www.adobe.com/support/documentation/en/dreamweaver/"]Macromedia/Adobe[/URL] website for DW tutorials. For HTML one of the best places to start is [URL="http://www.w3schools.com/"]w3schools[/URL] | |
Re: There are a couple of scripts [URL="http://www.web-source.net/web_development/currency_formatting.htm"]here[/URL] that may help you out. | |
Re: Well I've got a beer in front of me, all I need it a sad story so I can start crying into it:D As my old grandmother used to say - "a problem shared is a problem halved" - so come on, let's have it! | |
Re: Schools, businesses and publicly accessible pc's have a firewall with restricted traffic streams on them for a reason - to stop abuse, reduce bandwidth and prevent virus infection. If you have a legitimate need to download files that have been blocked by the network admin, then the best thing to … | |
Re: Confirmed +1. All looks the same in FF, IE6, IE7b3. Note that your Flash is triggering the Eolas patch in IE7b3, requireing users to click on the Flash to view it. There are several ways to avoid this, and I recommend [URL="http://blog.deconcept.com/swfobject/"]SWFObject[/URL] | |
Re: A Google for "javascript redirect" would have answered yor question much quicker than posting here. [CODE] window.location="http://www.yourdomain.com/";[/CODE] | |
Re: @titu - requests of this nature are usually met with responses like: "Please send me $15.00 and I will forward you the script". This is not the way the forums work. If you have a question we can help with sorting out the problem, or give advice on possible solutions … | |
Re: Why not just apply the style directly to the button in the page? If you can explain the reason for hidding/displaying the button we can give a more suitable response. | |
Re: Your best bet would be to use the regular expression object to find matches to the pattern you want. An example script is included below. [CODE]<% dim sampletext, objRegExp, SearchPattern, ReplacePattern, matches sampletext = "<img src=""hello.jpg"">" '// enter the search pattern here SearchPattern = """" ' opening quote SearchPattern = … | |
Re: In short - you can't. You could (and this is a long way around) pass a parameter through the link that is tested for in the receiving page. If it is found then css is used to set the values of the pieces of the page you don't want to … | |
Re: Your problem is with the ampersand in the string data. You should urlencode any data passed through the querystring to catch errors like this, eg: [code]&wunit=<%=urlencode(rs.Fields("wunit"))%>[/code] | |
Re: There doesn't appear to be anything wrong with your conditional comment, other than it comes before your embedded styles, and so matching definitions in each set will be overwritten by the embedded styles. Why are you using .1em as a border width? Stick to specifying border widths (especially thin ones) … | |
Re: What error are you getting? That will narrow down the range of possible answers we need to give you. | |
Re: A couple of options here. You can use a pure javascript solution that stores all of the data in JS arrays and builds the selects dynamically, or you can use AJAX so that the page submit from the first selection is carried out, but on the client side so no … | |
Re: Google will be yout best friend here. Depending on your specific requirements, some things to search for may be: dhtml menu son of suckerfish | |
Re: Sounds like an error in the php that is handling the form submission, not the select element. | |
Re: Take the warning suppression marker (@) out of this line of code: [code] $result = @mysql_query($query,$link);[/code] so that you can see the error. | |
Re: Yes it certainly is possible. Just write and process the sql scripts in order: [code]sql = "insert into salestable your sales data" '// process the sales sql sql = "update stock table to adjust stock level of the individual items " '// process the stock update sql sql = "update/insert … | |
Re: Sounds like a load of gibberish....sorry! Relating your problem to somebody elses doesn't help us determine what your problem is, or even what you are asking. Perhaps a more logical explanation of your problem would help. A link to a page showing the problem would be better. | |
Re: Have a look at the source that is generated by the above code. You will no doubt see that there are errors in the generated source caused by escaped/unescaped characters from the database. | |
Re: Have a quick google for the functions DatePart and DateAdd. DatePart will help you format a given date in the format you require it. DateAdd will add (or substract) a given time period (seconds, minutes, hours, days, months, years, etc) from a given date. With these two functions you can … | |
Re: Not sure if I've understood your requirements correctly:rolleyes: To 'fix' layer1 to the bottom of layer0 try this: [CODE]/* CSS */ #layer0 { background: red; width: 200px; height: 460px; } #Layer1 { position:relative; top: 100%; width:136px; height:177px; margin-top: -177px; z-index:1; background: blue; }[/CODE] [CODE]<!-- HTML --> <div id="layer0"> <div id="Layer1"></div> … | |
Re: PHP has a standard (free) library designed for image manipulation - GDImage. There are a number of tutorial scripts available for creating thumbnails from uploaded images. Have a trip through google and if you don't find anything suitable come back and I'll see what i can knock up for you. | |
Re: Without seeing the rest of the code and markup it's a bit of a guess, but I would start out by modernising your script to DOM compatible standard. Try: [CODE]<script type="text/javascript"> var vovalue = document.getElementById("fname").options[(document.getElementById("fname").selectedIndex)].value; </script> <select name="fname" id="fname"> <option value="Arial">Arial</option> <option value="Symbol">Symbol</option> <option value="Rockwell">Rockwell</option> </select>[/CODE] | |
Re: You have an extra quote mark in your document.write line which is closing the href value before your variable is added. Try: [CODE]document.write('<a href="http://clkuk.tradedoubler.com/click?p=37983&a=1014659&g=16173558&epi='+myuid+'" target="_blank"><img src="'+uri+'" border=0></a>');[/CODE] | |
Re: The form action contains a querystring, which is being processed by the script of the target page, and returns a response. It looks like the form fields have been named wrong. If you change the form as follows, it works: [CODE]<form action="http://intext.smscard.com/" method="post" > <INPUT TYPE="hidden" name="a" value="api_balance"> <INPUT NAME="login" … | |
Re: The code you have posted refences form fields and variables that do not exist in the code you posted. For us, the code can never work. If you want us to help you track down the problem you will need to provide the full content of the page in question, … | |
Re: Take the readonly attribute off of the text input. This will allow your users to type in the text field. You will need to add extra validation to that field to ensure the data they enter is in a valid date format. | |
Re: This line in your function is wrong: [PHP]$id = $_POST['id']; echo "ID in function completed($id) is $id<br />";[/PHP] You are passing the $id through the function call, so no need to reference the $_POST value. Change the first line to: [PHP]echo "ID in function completed($id) is $id<br />";[/PHP] [COLOR=#000000][COLOR=#007700][/COLOR][/COLOR] | |
Re: Rather than post all your code it would be better to post the schema of the tables that contain the data you need to access, and include any relationships contained between the tables, eg members.username = messages.user_id. This way we can determine the best query to use based on your … | |
Re: I think the question is - how do i get rid of the validation 'warning' regarding background-color/color combinations on elements. The answer is - they are 'WARNINGS', and are to alert you to a possibility that you could be placing text over a background that does not have a high … | |
Re: First thing to do would be to response.write out you form variables to verify that the form data is being passed through to the script correctly. Are you getting any errors, or just a blank page? | |
![]() | Re: Apache is the server, if you have installed it on your home pc then you can access it through your browser. Entering [url]http://localhost[/url] should get you the Apache welcome page. As for what to do next - if you have a book then work through that. If not, then visit … |
The End.