Forum Moderators: phranque
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
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!