Does anyone have any idea what is going on here? Look at this super simple form first and I'll explain:
In IE 7.0 if you hit the "Enter" key after your done typing in the textbox the form loses its value and doesn't actually POST the data (i.e. no echo of the value of the 'test' variable). In Mozilla 2.0 there is no problem. When you hit "Enter" the value of 'test' is echo'd to the page.
Now, if you add another input in the above form like so:
This works just fine in IE 7.0 when you hit enter! What the heck is going on? Why do you have to have 2 input fields in IE 7 for the POST to work after hitting "Enter". Any thoughts or work-arounds?
Thank you!
Code:
<?php
if(isset($_POST['submit'])) {
echo $_POST['test'] . "<br>";
}
?>
<form method=post action="form.php">
<input type=text name=test value="">
<input type=submit name=submit value="Submit">
</form>
In IE 7.0 if you hit the "Enter" key after your done typing in the textbox the form loses its value and doesn't actually POST the data (i.e. no echo of the value of the 'test' variable). In Mozilla 2.0 there is no problem. When you hit "Enter" the value of 'test' is echo'd to the page.
Now, if you add another input in the above form like so:
Code:
<?php
if(isset($_POST['submit'])) {
echo $_POST['test'] . "<br>";
}
?>
<form method=post action="form.php">
<input type=text name=test value="">
<br>
[b]<input type=text name=dummy value="">[/b]
<input type=submit name=submit value="Submit">
</form>
This works just fine in IE 7.0 when you hit enter! What the heck is going on? Why do you have to have 2 input fields in IE 7 for the POST to work after hitting "Enter". Any thoughts or work-arounds?
Thank you!