in reply to how can i take value in TextBox and pass to a URL?
Something like this, maybe?
<html> <body> <form method="get" action="http://site.com/index.php"> <input type="text" name=""><br> <input type="hidden" name="more" value="whatever"> <input type="submit" value="Button-A"> </form> <br> <form method="get" action="http://site2.com/page.php"> <input type="hidden" name="" value="hello"> <input type="hidden" name="more" value="whatever"> <input type="submit" value="Button-B"> </form> </body> </html>
Note that using name="" is considered bad form, but if you change it to something like name="mytext" the URL you request will change to:
"http://site.com/index.php?mytext=heybuddy?more=whatever"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how can i take value in TextBox and pass to a URL?
by blackcode (Novice) on Dec 10, 2009 at 21:09 UTC | |
by scorpio17 (Canon) on Dec 11, 2009 at 14:58 UTC | |
by blackcode (Novice) on Dec 11, 2009 at 19:22 UTC | |
by blackcode (Novice) on Dec 15, 2009 at 07:54 UTC | |
by blackcode (Novice) on Dec 10, 2009 at 21:11 UTC | |
by gmargo (Hermit) on Dec 10, 2009 at 21:38 UTC |