homepage Welcome to WebmasterWorld Guest from 54.205.52.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
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?

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

Thanks

Anni

 

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.:

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

Hope this helps!

Annii




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

Wow that works :)

Thank you so much

Anni

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved