dig412 Posted February 28, 2006 Share Posted February 28, 2006 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?[code]<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!" /></form>[/code]produces:index.php?mode=img&usertxt=[whatever]&image=news&Submit=Say+It! Quote Link to comment https://forums.phpfreaks.com/topic/3779-submit-button-get/ Share on other sites More sharing options...
kenrbnsn Posted February 28, 2006 Share Posted February 28, 2006 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.Ken Quote Link to comment https://forums.phpfreaks.com/topic/3779-submit-button-get/#findComment-13141 Share on other sites More sharing options...
dig412 Posted March 1, 2006 Author Share Posted March 1, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/3779-submit-button-get/#findComment-13229 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.