Jay Blanchard wrote:
[snip]
What is the difference between these two examples?
Both works fine for me.
1. if ($_POST['submit'] == 'Login') {
...
...
}
2. if (isset($_POST['submit']) {
...
...
}
[/snip]
One is checking if $_POST contains a specific value, the other just checks to see if it contains a value. If $_POST['submit'] contains 'foo' is ISSET. Make sense?
Maybe a daft question but why would you like to check for a specific value?
Can you give an example when this is a good thing to do?
/PJ
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php