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,
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
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
]
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
4 matches
Mail list logo