RE: [PHP] $_POST['xxx'] = "blabla" ?
| From: | Vail, Warren | Date: | Mon, 22 Nov 2004 20:59:03 +0000 |
| Subject: | RE: [PHP] $_POST['xxx'] = "blabla" ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202699@lists.php.net to get a copy of this message | ||
Because you can have more than one submit button per form?
Warren Vail
> -----Original Message-----
> From: Perry Jönsson [mailto:public@combinative.se]
> Sent: Monday, November 22, 2004 12:56 PM
> To: php-general@lists.php.net
> Subject: Re: [PHP] $_POST['xxx'] = "blabla" ?
>
>
> Gerhard Meier wrote:
> > On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote:
> >
> >>1. if ($_POST['submit'] == 'Login') { ... }
> >
> >
> > This one is true if $_POST['submit'] is equal to 'Login'.
> >
> >
> >>2. if (isset($_POST['submit']) { ... }
> >
> >
> > This one is true if $_POST['submit'] is set, it doesn't
> matter which
> > value it has.
> >
> > /GM
>
>
> If you only have one form on a page, why would you like to check the
> value/name of the submit button?
>
> Is there a security aspect to this?
>
> /PJ
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>