|
| |
|
|
Joey
Posts: 188 Joined: 5/15/2002 From: Status: offline
|
Form Get Problem - 4/17/2009 15:12:31
When i use get to post a form to another page i get the button showing up. How do i stop the button field from showing up? Here is my code: <form method="get" action="http://www.test web site.com">
<input name="Text1" type="text" /><br />
<input name="button" type="submit" value="Submit" /></form>
and here is the output: http://www.test web site.com/?Text1=123&button=Submit
|
|
|
|
jeepless
Posts: 230 Joined: 12/20/2003 From: Smack in the middle of USA Status: offline
|
RE: Form Get Problem - 4/17/2009 17:08:47
In the line <input name="button" type="submit" value="Submit" />, try removing the name="button" part of it. So you would end up with: <input type="submit" value="Submit" />
_____________________________
The problem with designing a system that's foolproof is that designers underestimate complete fools.
|
|
|
|
Joey
Posts: 188 Joined: 5/15/2002 From: Status: offline
|
RE: Form Get Problem - 4/17/2009 17:39:48
Thanks jeepless that makes the string perfect!
|
|
|
|
BeTheBall
Posts: 6502 Joined: 6/21/2002 From: West Point Utah USA Status: offline
|
RE: Form Get Problem - 4/17/2009 23:00:06
quote:
ORIGINAL: jeepless In the line <input name="button" type="submit" value="Submit" />, try removing the name="button" part of it. So you would end up with: <input type="submit" value="Submit" /> Hmmm. Learned something new today. That makes sense. Since a querystring is composed of name/value pairs, the taking away of the name prevents the pair from going into the querystring. Nice solution.
_____________________________
Duane Some people are like Slinkies . . . Not really good for anything . . . . . But they still bring a smile to your face when you push them down a flight of stairs.
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|