Jump to html page with form and a go button

liunx

Guest
I need to setup a single form field with a go button to direct users to certain pages. I.E. Home page has the form field, user types 11000 in the field, clicks go and the browser takes the user to 11000.html<br /><br />Can anyone advise if this is possible and how I'd go about achieving this.<br /><br />Thanks in advance.<br /><br />J<!--content-->
There's a couple of ways to do this. The proper way requires that your server has some kind of scripting abilitiy, such as PHP, ASP, cgi-bin, etc. If it has><img src='http://www.webdesignerforum.co.uk/style_images/1/post_snapback.gif' alt='*' border='0' /></div><div class='quotemain'><!--quotec-->There's a couple of ways to do this. The proper way requires that your server has some kind of scripting abilitiy, such as PHP, ASP, cgi-bin, etc. If it has><img src='http://www.webdesignerforum.co.uk/style_images/1/post_snapback.gif' alt='*' border='0' /></div><div class='quotemain'><!--quotec-->Sure, you could do this:<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->Enter a number:<br /><br /><input type="text" id="code" value="" /><br /><input type="button" value="Go" onclick="document.location = '/html/' + document.getElementById('code').value + '.html'" /><!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd--><br /><br /><br />Nathan your a legend, works a treat!<br /><br />Thanks for your help, brilliant.<!--content-->
 
Top