Click to See Complete Forum and Search --> : How to send a form using the "enter" key?


arturion
07-02-2004, 12:47 PM
I have a form. Its "action" is a PHP page. It has only a <input type="text"> and a <input type="submit"> button. When I put some text in the textarea and then press the "sumbit" button, it works correctly.

But, when I write some text in the textarea and then press the "Enter" key, the text I entered dissappears, and the form doesn't submit. Why? How can I make the form to work using the "enter" key? Thanks for reading my post.

russell
07-02-2004, 01:01 PM
By default it should work. Let's see the code.