RE: [PHP] Multiple SUBMIT Buttons and Default
| From: | Boget, Chris | Date: | Thu, 08 Nov 2001 22:01:46 +0000 |
| Subject: | RE: [PHP] Multiple SUBMIT Buttons and Default | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73958@lists.php.net to get a copy of this message | ||
> On some of my forms I have multiple Submit buttons;
> for example
> Button1 = Cancel, and
> Button2 = Continue
> Is there a way to make one of them the *default* button so
> that when a user presses their Return / Enter Key, *that default*
> button will be processed?
I believe the first one is what you would consider the "default".
Also, note that the "return = submit" functionality doesn't work
on all browsers. In fact, I think it only works on IE. I know it
doesn't work on NS.
Chris