Because you can have more than one submit button per form? Warren Vail > -----Original Message----- > From: Perry Jönsson [mailto:public@xxxxxxxxxxxxxx] > Sent: Monday, November 22, 2004 12:56 PM > To: php-general@xxxxxxxxxxxxx > Subject: Re: $_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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php