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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to