RE: [PHP] POST variables, funny thing
| From: | Jay Blanchard | Date: | Mon, 27 Oct 2003 13:49:31 +0000 |
| Subject: | RE: [PHP] POST variables, funny thing | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167715@lists.php.net to get a copy of this message | ||
[snip]
A funny thing was happeng with a GET variable here, after testing it
with an if clause, it would be set to 1, like this, after that:
if ( $_POST['nova'] =! "")
$_POST['nova'] = 1... Is that alright?
[/snip]
GET (see your question) or POST....not that it matters.
if($_POST['nova'] != ""){
$_POST['nova'] = 1;
}
will work (note the change of the "not equal to" operator)