RE: [PHP] $_POST['xxx'] = "blabla" ?
| From: | Jay Blanchard | Date: | Mon, 22 Nov 2004 20:42:23 +0000 |
| Subject: | RE: [PHP] $_POST['xxx'] = "blabla" ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-202693@lists.php.net to get a copy of this message | ||
[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?