RE: [PHP] RE: multiple submit buttons

2001-08-31 Thread Johnson, Kirk
Tim Ward wrote: > Be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden field before the submits with same name. > Tim, thanks for the tip. I had heard of this behavior before

Re: [PHP] RE: multiple submit buttons

2001-08-29 Thread Andrey Hristov
stov IcyGEN Corporation http://www.icygen.com 99% - Original Message - From: "Tim Ward" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]>; "'Justin French'" <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 3:52 PM Subject: [PHP] RE

[PHP] RE: multiple submit buttons

2001-08-29 Thread Tim Ward
As far as any CGI is concerned there is only one submit, The one that is pressed. The other one is simply not posted. But be careful using values of submit buttons ... if the user hits return instead of clicking one of the buttons you won't get anything. If you want a default value try a hidden fi

[PHP] Re: multiple submit buttons

2001-08-29 Thread Herouth Maoz
On Wednesday 29 August 2001 10:09, Justin French wrote: > I noticed this chunk of code in a site the other day: > > > > > > My GUESS is that if i click the "Yes" button, I magically > get $btn = "Yes" as a var is the receieving PHP script. > I was just about to test this, when I realised that (