Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Creating a form that opens a url based on form input eg www.anotherdomain.com?n=Show&id=FORMINPUTTEXT Annii msg:667529 11:40 am on May 21, 2003 (gmt 0) 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?
dmorison msg:667530 11:44 am on May 21, 2003 (gmt 0)
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.:
Hope this helps!
Annii msg:667531 11:58 am on May 21, 2003 (gmt 0)
Wow that works :)
Thank you so much