2 submit buttons.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux