I tryed everything.
How can I submit a form just using the enter button and not click on the Submit button. I have 3 forms. In 1 form it works, and in the other 2 it doesn't....
Please help me:
http://frihost.pastebin.com/847751
| fromegame wrote: |
I tryed everything. How can I submit a form just using the enter button and not click on the Submit button. I have 3 forms. In 1 form it works, and in the other 2 it doesn't.... Please help me: http://frihost.pastebin.com/847751 |
| Code: |
|
<form method="post" action="#"> <p><input type="text" name="email" size="20"></p> </form> |
| fromegame wrote: |
| http://frihost.pastebin.com/847751 |
| hexkid wrote: | ||
I believe it's invalid to have a form inside a <tr> element. Maybe that's the reason pressing ENTER will not submit your form. Validate your HTML (here). You also might consider asking this question in the HTML, CSS and JavaScript forum. |
| fromegame wrote: |
| But in that other form (that does work) is also a table? |
| fromegame wrote: |
| it has something to deal with the php I think |