Re: im so stupid
| From: | Afan Pasalic | Date: | Tue, 12 Feb 2002 16:09:47 +0000 |
| Subject: | Re: im so stupid | ||
| References: | 1 2 3 4 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-12032@lists.php.net to get a copy of this message | ||
Thanks guys, I didn't know that... One more happy day...
Afan
----- Original Message -----
From: Mike Flynn
To: Nicole Amashta ; php-windows@lists.php.net ; afan@sprout.net
Sent: Tuesday, February 12, 2002 11:03 AM
Subject: Re: [PHP-WIN] im so stupid
At 10:43 AM 2/12/2002 -0500, Nicole Amashta wrote:
>Not in the least. That is not the same at all. You are referencing the
><input type="submit" name="submit"> button.
>
>I am referencing a hidden field that is set with that value no matter what.
Exactly. I learned this the hard way. Don't rely on the submit button at
all. IE has all kinds of quirks where the button's value may not get
passed if the user submits the form by hitting Enter instead of clicking
the button. Hidden values are the way to go. The only time you could rely
on buttons is if you have a form with multiple submit buttons. One button
is the "default" submit button (i/e the one that gets highlighted when you
click within the form), the rest must be clicked to be submitted. For
these, you could use their name/values.
-Mike