Re: [PHP] 2 submit buttons.

2011-02-15 Thread Steve Staples
On Tue, 2011-02-15 at 08:07 -0500, Floyd Resler wrote: > On Feb 14, 2011, at 5:24 PM, Paul M Foster wrote: > > > On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: > > > >> > >> On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: > >> > >>> On Mon, Feb 14, 2011 at 03:35:02PM -0400, Pau

Re: [PHP] 2 submit buttons.

2011-02-15 Thread Floyd Resler
On Feb 14, 2011, at 5:24 PM, Paul M Foster wrote: > On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: > >> >> On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: >> >>> On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: >>> I have 2 buttons on a page: if

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Dmitrii Varvashenia
oh - I forgot - the first the submit will be the default 2011/2/15 Dmitrii Varvashenia : -- WBR, Dmitrii +375 29 60-LINUX, 25-LINUX, 40-LINUX icq: 193-74-771 www.varvashenia.ru, www.seoder.ru -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Dmitrii Varvashenia
2011/2/14 Paul Halliday : > if (isset($_POST['botton1'])) {dothing1();} > if (isset($_POST['button2'])) {dothing2();} Hello. in html: in PHP if(isset($_POST['op'])){ switch($_POST['op']){ case 'Update': dothing1(); break; case 'Checkout': dothing2(); break; default: dohat

Re: [PHP] 2 submit buttons.

2011-02-14 Thread tolga
15.02.2011 00:24, Paul M Foster yazmış: On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: I have 2 buttons on a page: if (isset($_POST['botton1'])) {dothing1();} if

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Paul M Foster
On Mon, Feb 14, 2011 at 05:15:11PM -0500, Floyd Resler wrote: > > On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: > > > On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: > > > >> I have 2 buttons on a page: > >> > >> if (isset($_POST['botton1'])) {dothing1();} if > >> (isset($_P

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Floyd Resler
On Feb 14, 2011, at 4:18 PM, Paul M Foster wrote: > On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: > >> 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

Re: [PHP] 2 submit buttons.

2011-02-14 Thread Paul M Foster
On Mon, Feb 14, 2011 at 03:35:02PM -0400, Paul Halliday wrote: > 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, th

[PHP] 2 submit buttons.

2011-02-14 Thread Paul Halliday
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:/