ok I want my website to check if a user is logged in. If the user is logged in, then it would show the whole website and the Hello, BLAH BLAH messege....(I have figured this out allready) and if the user is not logged in, then it would show the whole page and the login Form...
But When I do this I get a Parse Error on line where there are ** on the line
here is my code...
PHP:--------------------------------------------------------------------------------
//Before This is the Website
<?php
if (!$HTTP_COOKIE_VARS["bbuserid"]) {
Print "Hello <b>$username</b>, and Welcome to our site!";
}
else
{
echo "
//Displly Login Part
**<TD width="153" valign="top" rowspan="7" height="458">
<center>
<p align="right"><font color="white" size="1"face="verdana"><b>Login</b><BR>
<img src="spacer2.jpg" align="top" width="90" height="1"><BR><b> </b></font><BR>
<form action="/member.php" method="post">
<font color="#FFFFFF" face="Verdana" size="1"><b>Username:</b></font><font color="white" size="1" face="verdana">
<input type="text" name="username" size="12"maxlength="20">
<br>
<b>Password: </b><input type="password" name="password"size="12" maxlength="15"><inputtype="hidden" name="action" value="login">
<br>
<br>
<input type="submit" name="submit" value="Login ยป">
</font>
";
}
?>
//Displly rest of Site
So can some one plz tell me what is wrong.....I'm a Newbie to PHP
Thanks in Advance