2 submit buttons.
| From: | Paul Halliday | Date: | Mon, 14 Feb 2011 19:35:02 +0000 |
| Subject: | 2 submit buttons. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-311282@lists.php.net to get a copy of this message | ||
I have 2 buttons on a page:
if (isset($_POST['botton1'])) {dothing1();}
if (isset($_POST['button2'])) {dothing2();}
They both work as intended when I click on them. If however I click
within a text box and hit enter, they both fire.
Is there a way to stop this?
Thanks.
--
Paul Halliday
http://www.pintumbler.org