Codeit1978
asked on
Clicking enter does not submit the form
Hello,
I have several forms on one page.
When I hit enter it does not post the data from the form I am current in and post it to the correct page.
I have to hit submit in order for it to work correct.
Does this have to do with my isset logic in my code? I use the isset to determine what submit box is selected.
Thanks.
I have several forms on one page.
When I hit enter it does not post the data from the form I am current in and post it to the correct page.
I have to hit submit in order for it to work correct.
Does this have to do with my isset logic in my code? I use the isset to determine what submit box is selected.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This looks perfect, let me give it a go
ASKER
Humm that's not working it's almost like it's not passing the form. Did this work for you?
Yup. It works for me with Internet Explorer version 6 in Windows.
These forms are set to GET so the values should show up in the address bar.
Anyway, hitting enter to submit a form is convenient, but it is good form to
always have a button to submit it manually.
--brian
These forms are set to GET so the values should show up in the address bar.
Anyway, hitting enter to submit a form is convenient, but it is good form to
always have a button to submit it manually.
--brian
I will post you the code to capture the enter key.
--brian