Welcome to WebmasterWorld Guest from 54.227.1.130

Forum Moderators: phranque

Message Too Old, No Replies

Creating a form that opens a url based on form input

eg www.anotherdomain.com?n=Show&id=FORMINPUTTEXT

     

Annii

11:40 am on May 21, 2003 (gmt 0)

10+ Year Member



Hi
This is probably very simple to do, but I just can't work it out and am hoping someone here can help.

I want to have a form on my site that has one input box
where the surfer inputs their unique ID.
I then want them to be taken to a url based on the input when they press the submit button.
I think I'm trying to create a unique query string to add on the end of a fixed URL if that helps?

eg www.anotherdomain.com?n=Show&id=FORMINPUTTEXT

Thanks

Anni

dmorison

11:44 am on May 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think I'm trying to create a unique query string to add on the end of a fixed URL if that helps?

That is exactly what a FORM, when posted using the GET method does.

So if you have:

<form method='get' action='http://www.anotherdomain.com'>
<input type='hidden' name='n' value='Show'>
<input type='text' name='id'>
<input type='submit'>
</form>

Then the query string will be exactly what you want - i.e.:

www.anotherdomain.com?n=Show&id=FORMINPUTTEXT

Hope this helps!

Annii

11:58 am on May 21, 2003 (gmt 0)

10+ Year Member



Wow that works :)

Thank you so much

Anni

 

Featured Threads

Hot Threads This Week

Hot Threads This Month