Re: Not sure of my error
| From: | jeremy brand | Date: | Sat, 18 Nov 2000 00:11:52 +0000 |
| Subject: | Re: Not sure of my error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25980@lists.php.net to get a copy of this message | ||
Hi Jerry,
> if ($state == "");
Take the semi-colon off the if statement.
it should read:
if ($state == "")
:)
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
- - - - - - - - - - - - - - - - - - - - - - - - -
I am pleased to see that we have differences. May we together become
greater than the sum of both of us.
-- Surak of Vulcan, "The Savage Curtain", stardate 5906.4
On Fri, 17 Nov 2000, Jerry Lake wrote:
> Date: Fri, 17 Nov 2000 16:11:17 -0800
> From: Jerry Lake <jerryl@europa.com>
> 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
>
>