Accidently exited the window before when I was about to submit so if it is short you can understand why. I am wanting to know if I can put a HTML page in the PHP Usersystem by Techtuts.
Example one: "Community.php" - My community page.
This is the members only PHP code.HTML Code:<html> <head> <title></title> <style type="text/css">BODY{ color:#FFFFFF; scrollbar-3dlight-color:#FFFFFF; scrollbar-arrow-color:#000000; scrollbar-base-color:#FFFFFF; scrollbar-darkshadow-color:#FFFFFF; scrollbar-face-color:#FFFFFF; scrollbar-highlight-color:#FFFFFF; scrollbar-shadow-color:#FFFFFF; } A{color:#000000; font-family:veranda; text-decoration:none; } A:Visited{color:#000000; font-family:veranda; text-decoration:none; } A:Hover{color:#0000FF; font-family:veranda; text-decoration:none; }</style> </head> <body bgcolor="#fefefe"> <div align="center"><font face="Verdana"><strong> <p align="center"> <img title="" height="66" alt="" src="/images/habbo1.PNG" width="518"></p></strong></font></div> <div align="center"><strong> </strong></div><font face="Courier"> <div align="center"> <table style="width: 210px; border-collapse: collapse; height: 256px;" bordercolor="#000000" height="256" cellspacing="0" cellpadding="3" width="210" border="0"> <tbody> <tr> <td valign="top" width="50%"> <p align="right"> <img title="" height="44" alt="" src="/images/guide12.gif" width="51"></p></td> <td valign="top" width="50%"> <div><font face="Verdana" size="1"> </font></div> <div><font face="Verdana" size="1"><a href="jobs.php" target="content">Jobs</a></font></div></td></tr> <tr> <td valign="top" width="50%"> <p align="right"> <img title="" height="44" alt="" src="/images/guide13.gif" width="51"></p></td> <td valign="top" width="50%"> <div><font face="Verdana" size="1"> </font></div> <div><font face="Verdana" size="1"><a href="about.php" target="content">About Us</a></font></div></td></tr> <tr> <td valign="top" width="50%"> <p align="right"> <img title="" height="44" alt="" src="/images/guide14.gif" width="51"></p></td> <td valign="top" width="50%"> <div><font face="Verdana" size="1"> </font></div> <div><font face="Verdana" size="1"><a href="staff.php" target="content">Staff</a></font></div></td></tr> <tr> <td valign="top" width="50%"> <p align="right"> <img title="" height="44" alt="" src="/images/guide15.gif" width="51"></p></td> <td valign="top" width="50%"> <div><font face="Verdana" size="1"> </font></div> <div><font face="Verdana" size="1"><a href="comps.php" target="content">Competitions</a></font></div></td></tr> <tr> <td valign="top" width="50%"> <p align="right"> <img title="" height="44" alt="" src="/images/guide16.gif" width="51"></p></td> <td valign="top" width="50%"> <div><font face="Verdana" size="1"> </font></div> <div><font face="Verdana" size="1"><a href="events.php" target="content">Events</a></font></div></td></tr></tbody></table></div> <div align="center"> </div> <div align="center"><font face="Verdana" color="#000000" size="1"><a href="/staffloginpage.php" target="content">Staff login</a></font></div></font> <div align="center"><font face="Verdana"> </font></div> <div align="center"><strong><font face="Verdana"> </font></strong></div> <div align="center"><font face="Verdana"> </font></div> </body> </html>
I tried this:PHP Code:<?
ob_start();
include("config.php");
if ($logged[username])
{
echo("You are logged in");
}
else
{
echo("You are not logged in");
}
?>
PHP Code:<?
ob_start();
include("config.php");
if ($logged[username])
{
echo("<html>
<head>
<title></title>
<style type="text/css">BODY{ color:#FFFFFF; scrollbar-3dlight-color:#FFFFFF; scrollbar-arrow-color:#000000; scrollbar-base-color:#FFFFFF; scrollbar-darkshadow-color:#FFFFFF; scrollbar-face-color:#FFFFFF; scrollbar-highlight-color:#FFFFFF; scrollbar-shadow-color:#FFFFFF; }
A{color:#000000; font-family:veranda; text-decoration:none; }
A:Visited{color:#000000; font-family:veranda; text-decoration:none; }
A:Hover{color:#0000FF; font-family:veranda; text-decoration:none; }</style>
</head>
<body bgcolor="#fefefe">
<div align="center"><font face="Verdana"><strong>
<p align="center">
<img title="" height="66" alt="" src="/images/habbo1.PNG" width="518"></p></strong></font></div>
<div align="center"><strong> </strong></div><font face="Courier">
<div align="center">
<table style="width: 210px; border-collapse: collapse; height: 256px;" bordercolor="#000000" height="256" cellspacing="0" cellpadding="3" width="210" border="0">
<tbody>
<tr>
<td valign="top" width="50%">
<p align="right">
<img title="" height="44" alt="" src="/images/guide12.gif" width="51"></p></td>
<td valign="top" width="50%">
<div><font face="Verdana" size="1"> </font></div>
<div><font face="Verdana" size="1"><a href="jobs.php" target="content">Jobs</a></font></div></td></tr>
<tr>
<td valign="top" width="50%">
<p align="right">
<img title="" height="44" alt="" src="/images/guide13.gif" width="51"></p></td>
<td valign="top" width="50%">
<div><font face="Verdana" size="1"> </font></div>
<div><font face="Verdana" size="1"><a href="about.php" target="content">About Us</a></font></div></td></tr>
<tr>
<td valign="top" width="50%">
<p align="right">
<img title="" height="44" alt="" src="/images/guide14.gif" width="51"></p></td>
<td valign="top" width="50%">
<div><font face="Verdana" size="1"> </font></div>
<div><font face="Verdana" size="1"><a href="staff.php" target="content">Staff</a></font></div></td></tr>
<tr>
<td valign="top" width="50%">
<p align="right">
<img title="" height="44" alt="" src="/images/guide15.gif" width="51"></p></td>
<td valign="top" width="50%">
<div><font face="Verdana" size="1"> </font></div>
<div><font face="Verdana" size="1"><a href="comps.php" target="content">Competitions</a></font></div></td></tr>
<tr>
<td valign="top" width="50%">
<p align="right">
<img title="" height="44" alt="" src="/images/guide16.gif" width="51"></p></td>
<td valign="top" width="50%">
<div><font face="Verdana" size="1"> </font></div>
<div><font face="Verdana" size="1"><a href="events.php" target="content">Events</a></font></div></td></tr></tbody></table></div>
<div align="center"> </div>
<div align="center"><font face="Verdana" color="#000000" size="1"><a href="/staffloginpage.php" target="content">Staff login</a></font></div></font>
<div align="center"><font face="Verdana"> </font></div>
<div align="center"><strong><font face="Verdana"> </font></strong></div>
<div align="center"><font face="Verdana"> </font></div>
</body>
</html>");
}
else
{
echo("You need to sign up to our member system!");
}
?>
I get this error:
So am I able to use normal HTML or am I gonna have to use PHP in the echos?Parse error: syntax error, unexpected T_STRING in /home/rob4/public_html/community.php on line 9





Reply With Quote






