Re: Function / String Problem
| From: | Marcelo Gulin | Date: | Fri, 19 Jan 2001 18:26:15 +0000 |
| Subject: | Re: Function / String Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35682@lists.php.net to get a copy of this message | ||
Hi Karl!
try...
echo "<br><br>...are you logged in: " . $LoggedIn() .
"<br><br>";
regards
Marcelo Gulin
"Karl J. Stubsjoen" escribió:
>
> Okay, what is wrong with this:
>
> echo "<br><br>...are you logged in:
> $LoggedIn()<br><br>";
> // outputs: ...are you logged in: ()
>
> Function is:
> function LoggedIn(){
> global $HTTP_POST_VARS
> if ($HTTP_POST_VARS["Login"] == "PHPIsCool")
> {return "YES";}
> else
> {return "NO";}
> }
>
> --
> 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