It's after a variable called $LoggedIn.
You'll have to do:
echo "...are you logged in: ".LoggedIn()."";
hth
Chris Mulcahy
[EMAIL PROTECTED]
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:17 AM
To: PHP Mailing List
Subject: [PHP]
Hi Karl!
try...
echo "...are you logged in: " . $LoggedIn() . "";
regards
Marcelo Gulin
"Karl J. Stubsjoen" escribió:
>
> Okay, what is wrong with this:
>
>echo "...are you logged in: $LoggedIn()";
> // outputs:...are you logged in: ()
>
> Function is:
> function LoggedIn(
Try this:
echo "...are you logged in: " . LoggedIn() . "";
The reason it wasn't working is because it thought LoggedIn was a
variable and () was part of the echo statement.
"Karl J. Stubsjoen" wrote:
>
> Okay, what is wrong with this:
>
>echo "...are you logged in: $LoggedIn()";
> //
>echo "...are you logged in: $LoggedIn()";> //
outputs:...are you logged in: ()
>
> Function is:
> function LoggedIn(){
> global $HTTP_POST_VARS
> if ($HTTP_POST_VARS["Login"] == "PHPIsCool")
> {return "YES";}
> else
> {return "NO";}
> }
Change your
4 matches
Mail list logo