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



Reply via email to