Top

Internet Explorer and Forms

December 23, 2005 by Jeff Purcell 

I ran across this little quirk with Internet Explorer the other day. It appears that when a form is submitted by actually clicking the submit button, an element in the PHP array $_POST is created for the button. Simple enough, right? Well I noticed that when the form was submitted by pressing the Enter key instead of clicking the submit button, an element in the $_POST array was not created for the button. It’s not an exceptionally large quirk, but definitely caused me to rethink my form submission checking. Firefox and Safari created the array element for the button regardless of how the form was submitted.. This occured with Internet Explorer 6.0 and PHP version 5.0.3

Tags: , ,

Comments

One Response to “Internet Explorer and Forms”

  1. beck on July 27th, 2006 4:16 pm

    hi

Feel free to leave a comment...
and oh, if you want a pic to show with your comment, go get a gravatar!





Bottom