Page 1 of 1

submit button not working

Posted: Fri Sep 05, 2008 9:47 am
by theBond
Submit button not working in IE when i use enter key. It works when i use mouse. It works fine in firefox.

this is the code i am using,

Code: Select all

<form method='post' action='mypage'>
<input type='text' name='myname' value=''>
 
<input type='submit' name='submit' value='submit'>
 
</form>

Re: submit button not working

Posted: Fri Sep 05, 2008 10:51 am
by Christopher
Yes, IE will not send the submit button when Enter is used to submit the form. You need to do something like this:

Code: Select all

<form method='post' action='mypage'>
<input type='hidden' name='submit' value='yes'>
<input type='text' name='myname' value=''>
 
<input type='submit' name='submit_button' value='submit'>
 
</form>