Re: Trap CR or "Enter" possible?
| From: | Jason Wong | Date: | Fri, 22 Mar 2002 05:11:45 +0000 |
| Subject: | Re: Trap CR or "Enter" possible? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89648@lists.php.net to get a copy of this message | ||
On Friday 22 March 2002 10:52, Andre Dubuc wrote:
> Thanks Martin,
>
> I forgot to mention: I would like to accomplish this using PHP since I'm
> not using Javascript. Will this still work with straight html?
You can't have your cake and eat it :)
What you require can only be done client-side which means the only sensible
solution is javascript.
But, what are the undesirable effects of just pressing enter? I know that in
IE pressing enter to submit a form is not the same as clicking on the submit
button. If that is what you are referring to then it's very easy to code
around that and thus would not require javascript.
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
/*
Yow! Maybe I should have asked for my Neutron Bomb in PAISLEY --
*/