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,

[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: input type=Submit name=btn value=Yes input type=Submit name=btn value=No My GUESS is that if i click the Yes button, I magically get $btn = Yes as a var is the receieving PHP

[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

Re: [PHP] RE: multiple submit buttons

2001-08-29 Thread Andrey Hristov
] To: php [EMAIL PROTECTED]; 'Justin French' [EMAIL PROTECTED] Sent: Wednesday, August 29, 2001 3:52 PM Subject: [PHP] RE: multiple submit buttons 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