Jump to content


Submit button & get

  • Please log in to reply
2 replies to this topic

#1 dig412

  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 28 February 2006 - 09:39 PM

I'm submitting a form using GET, but for some reason, when i submit, the value of the submit button is added on as well. i've never noticed this before, any ideas?

<form action="index.php" method="GET">
<input type="hidden" name="mode" value="img" />
<input type="text" name="usertxt" /><br>
Shouting: <input type="radio" name="image" value="shout" checked="checked"/><br>
Newsreader: <input type="radio" name="image" value="news" /><br>
<input type="submit" value="Say It!" />


#2 kenrbnsn

  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 28 February 2006 - 10:41 PM

The submit button is part of the form and gets sent just like any other field.

You really should use the POST method, since it is a little more secure (it's harder for the casual user to see what's being passed) and more data can be passed from the form.


#3 dig412

  • Members
  • Pip
  • Newbie
  • 6 posts

Posted 01 March 2006 - 09:05 AM

I originaly used post, but it causes problems when saving the image in firefox. the form doesn't need to be secure, as it just passes information to a gd script.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users