I am getting errors in my code on line 40. I think that is where I had put the else {?>. The manual says I could do this. Would it matter if my server is in Safe mode?
<head>
<title>Log in</title>
</head>
<body>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8">
<meta name="Description" content="Stiguy.Com - Virtual StiRace! Join up for free games and more!">
<meta name="Keywords" content="pets, pet, games, game, virtual, fun, prizes, play, virtual pet, kids">
<title>Stiguy.com</title>
</head>
<body bgcolor="#00000"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="23%" valign="top">
<OBJECT classid="clsid😃27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=5,0,0,0" ID="ToolBar" WIDTH="150" HEIGHT="300">
<PARAM NAME="movie" VALUE="http://www.stiguy.com/toolbar.swf">
<PARAM NAME="quality" VALUE=high>
<PARAM NAME="bgcolor" VALUE=#000000>
<EMBED src="http://www.stiguy.com/toolbar.swf" quality=high bgcolor=#FFFFFF WIDTH=150 HEIGHT=300 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
<p><b><font color="#FFFFFF" face="Verdana" size="1">
<a href="http://Stiguy.com/ideas.phtml">Ideas</a></font></b></td>
<td width="77%" align="left" valign="top">
<font size="7" color = "white">Log-In
Please Log-In to use the site.</font>
<?php
/7/if ($user != "")
/8/{
/9/ $file = fopen("/usr/home/freehost/26817/usernames/".$user.".txt","r");
/10/ $passwordcheck = fread ($file,8);
/11/ $line2 = fread ($file,8);
/12/ $line3 = fread ($file,8);
/13/ fclose ($file);
/14/ if ($passwordcheck==$password){
/session_register("loggedin")/
setcookie("log","in")
}
else
{?>
<br><font size="6" color ="white"> <?if ($password=="") {echo "</font><font size='6' color='white'>"}?>Your username/password combination is incorrect.</font>
<br>
<form action='http://fahhem.t35.com/signin.php' method='POST'>
<table align=center width=78 cellpadding=4 cellspacing=0>
<input type='hidden' name='destination' value='<? echo $destination; ?>'>
<input type='hidden' name='logsent' value='sent'><tr>
<td width="78"><font color="#FFFFFF"><b>Username</b></font></td>
<td width="92">
<input type='text' name='user' size=12 maxlength=20 onFocus='this.select()'></td></tr><tr>
<td width="78"><font color="#FFFFFF"><b>Password</b></font></td>
<td width="92"><input type='password' name='password' size=12 maxlength=20></td></tr><tr>
<td align=center colspan=2 bgcolor='#000000' width="178">
<input type='submit' value='Log In'></td></tr></table></form>
<?php }
/23/ }
/24/}
/25/
/26/else
/27/{
?>
<Br>
<br><font size="6" color ="white"> Your username/password combination is incorrect.</font>
<br>
<form action='http://fahhem.t35.com/signin.php' method='post'>
<table align=center width=78 cellpadding=4 cellspacing=0>
<input type='hidden' name='destination' value='<? echo $destination; ?>'>
<input type='hidden' name='logsent' value='sent'><tr>
<td width="78"><font color="#FFFFFF"><b>Username</b></font></td>
<td width="92">
<input type='text' name='user' size=12 maxlength=20 onFocus='this.select()'></td></tr><tr>
<td width="78"><font color="#FFFFFF"><b>Password</b></font></td>
<td width="92"><input type='password' name='password' size=12 maxlength=20></td></tr><tr>
<td align=center colspan=2 bgcolor='#000000' width="178">
<input type='submit' value='Log In'></td></tr></table></form>
<?php
/29/}
/30/?>
</body>
Thanks in advance!