Internet Explorer and Forms

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: , ,


Similar Posts:

PHP, Programming, Web Standards

Comments

One Response to “Internet Explorer and Forms”

Leave Comment

(required)

(required)