Link to home
Start Free TrialLog in
Avatar of Codeit1978
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.
Avatar of Brian Bush
Brian Bush
Flag of United States of America image

If you have more than one field per form, enter will not submit.
I will post you the code to capture the enter key.

--brian
ASKER CERTIFIED SOLUTION
Avatar of Brian Bush
Brian Bush
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Codeit1978
Codeit1978

ASKER

This looks perfect, let me give it a go
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