Re: Some trouble...
| From: | Rasmus Lerdorf | Date: | Mon, 14 Jan 2002 19:08:24 +0000 |
| Subject: | Re: Some trouble... | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5569@lists.php.net to get a copy of this message | ||
But is $name really set to true? You probably want:
if(!empty($name)) ...
-Rasmus
On Mon, 14 Jan 2002, [iso-8859-1] Joakim wrote:
> Hi! My name is Joakim, and I'm having some troubles
> here:
>
> The script I use has been double-checked by my friends
> so it works. But it's just doing the "else-part"
> Like: if ($name == true)
> print "This man is named $name";
> else
> print "This man doesn't have a name";
>
> All this work for my friends but not for me :( it just
> types out "This man doesn't have a name"
>
> Do you know whats wrong?? (I really hope so...)
>
> Thanks!
>
> _____________________________________________________
> Do You Yahoo!?
> www.yahoo.se
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net
> For additional commands, e-mail: php-install-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>