Jump to content

[SOLVED] Help: "unexpected $ in /home/www/index.php on line 67"


Limezor

Recommended Posts

I have been using AwardSpace as my free webhost for about a month now. I have been messing around with PHP/MYSQL/CSS for a while now.

I downloaded a login system about two weeks ago, which has worked fine since then, but I started messing around with the layout of the login page.

Today I edited my CSS a bit, not too much, however. I deleted some unnecessary DIV tags and such.

 

After I did the latter, however, I tested my site and this error came up:

Parse error: parse error, unexpected $ in /home/www/index.php on line 67
(Line 67 is the last line of page/code)

 

I checked to see if all my tags are closed properly, like it was instructed to people who had similar problems, but to no success.

I really have no clue what the problem is, any help is appreciated  ;).

 

Here is my code:

 

<?php
include ("include/session.php");
?>

<html>
<title>vLime</title>

<head>
<link href="css.css" rel="stylesheet" type="text/css" media="all">
</head>



<body>

<div class="cont">
		<div class="header"><p> vLIME</p></div>
		<div class="navboxleft_143660">
			<div style="position:relative;width:228px;height:329px;float:left;-adbe-g:m;">
				<div class="class" style="position:absolute;top:0px;left:0px;width:227px;height:328px;-adbe-c:c">

<?php
if($session->logged_in){
   echo "<h1>Logged In</h1>";
   echo "Welcome <b>$session->username</b>, you are logged in. <br><br>"
       ."[<a href=\"userinfo.php?user=$session->username\">My Account</a>]   "
       ."[<a href=\"useredit.php\">Edit Account</a>]   ";
   if($session->isAdmin()){
      echo "[<a href=\"admin/admin.php\">Admin Center</a>]   ";
   }
   echo "[<a href=\"process.php\">Logout</a>]";
}
else{;
?>Login:

<?php
if($form->num_errors > 0){
   echo "<font size=\"2\" color=\"#ff0000\">".$form->num_errors." error(s)!</font>";
}
?>
					<table align="left" border="0" cellspacing="0" cellpadding="3">
						<tr>
							<td width="68">Username:</td>
							<td><input type="text" name="user" size="10" maxlength="30" value='<?php echo $form->value("user"); ?>'></td>
							<td><?php echo $form->error("user"); ?></td>
						</tr>
						<tr>
							<td width="68">Password:</td>
							<td><input type="password" name="pass" size="10" maxlength="30" value='<? echo $form->value("pass"); ?>'></td>
							<td><?php echo $form->error("pass"); ?></td>
						</tr>
						<tr>
							<td colspan="2" align="left"><font size="2"><input type="submit" value="Login"></font></td>
						</tr>
						<tr>
							<td colspan="2" align="left"><a href="register.php">Sign Up</a></td>
							<td></td>
						</tr>
					</table>
				</div>
			</div>
			<form action="process.php" method="POST"></form>
		</div>
	</div>
</body>
</html>

 

 

 

The error takes up the whole page, in other words, all I can see is that error.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.