Re: Submit hitting enter problem
| From: | Justin French | Date: | Mon, 11 Nov 2002 05:28:37 +0000 |
| Subject: | Re: Submit hitting enter problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123748@lists.php.net to get a copy of this message | ||
on 11/11/02 2:16 PM, rija (rija@vatu.com) wrote:
> Thanks for your quick answer,
>
> But it doesn't change anything.
> <textarea> change my text box into big text area-
>
> So I always have to click on submit button to submit the form.
Actually, I miss-read your question... do you WANT the form to be submitted
when hitting return/enter???
And you find that this is not happening when you are in a text field???
Correct?
This is a browser thing... I don't *think* there's anything in the standards
to say when hitting enter should/shouldn't work -- i think it's something
that each browser will do differently.
There may be something you can do with javascript.
Perhaps check out:
http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html
Or find a similar form example on another site, and dig around thru the code
to have a look how they did it.
Justin