RE: [PHP] Not sure of my error
| From: | Jerry Lake | Date: | Sat, 18 Nov 2000 00:18:34 +0000 |
| Subject: | RE: [PHP] Not sure of my error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25983@lists.php.net to get a copy of this message | ||
Thanks all!
This group rocks
Jerry Lake
-----Original Message-----
From: Jerry Lake [mailto:jerryl@europa.com]
Sent: Friday, November 17, 2000 4:11 PM
To: php-general@lists.php.net
Subject: [PHP] Not sure of my error
For some reason the code below
always returns as true even if
there State == "whatever" It looks
correct to me, but apparently isn't.
<?
if ($state == "");
{
echo "<div align=center>";
echo "$state";
echo "<h3>Please enter a state name</h3>";
echo "</div>";
exit;
}
else
{
stuff
}
?>
Jerry Lake
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net