Re: $_POST['xxx'] = "blabla" ?

From: Date: Mon, 22 Nov 2004 20:55:35 +0000
Subject: Re: $_POST['xxx'] = "blabla" ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-202697@lists.php.net to get a copy of this message
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

« previous php.general (#202697) next »