input text box with go button

joe789

Registered User.
Local time
Today, 21:53
Joined
Mar 22, 2001
Messages
154
Hello,

I am just starting out with some very basic web design and a bit lost. Can anyone tell me how, or point me to the right resources ... I am trying to simply place an input box on a webpage along with a button. That stuff I have already done. However, what I am trying to do is somehow, someway, have the end user type something into that text box and when they hit the go button or press enter, it takes them to that page if it exists, and if not, it tells them that the page is not found and to try again. For example:

http://www.test.com would show the user simply a text box and a button. The user enters 'abc' in the text box and either hits enter or hits the GO button next to the text box. The user then is forwarded to http://www.test.com/abc ... if the user enters 123 in the text box and hits a button and that page does not exist, the user would remain on the main page, http://www.test.com and told to try again because that option is not valid.

Any help, ideas, assistance, or direction about this would be very appreciated.

Thanks,

Joe
 
HTML will not pass data.
You will need a server that runs ASP or PHP (other options are availible) and then you can either write your own script to pass the data to email or enter it into a database or whatever. You can also find php (as an example) templates for such task.

Good luck!
 
or

also, you may not need to pass any data. if you know in advance what pages are valid you wouldnt need to use php or a database. just do it all in javascript (although this would not be a secure option). just read in the value through the field, compare it to an array of correct responses. if true, go to pageA else goto pageB
 

Users who are viewing this thread

Back
Top Bottom