Limezor Posted May 12, 2007 Share Posted May 12, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/51126-solved-help-unexpected-in-homewwwindexphp-on-line-67/ Share on other sites More sharing options...
Limezor Posted May 13, 2007 Author Share Posted May 13, 2007 SOLVED. Quote Link to comment https://forums.phpfreaks.com/topic/51126-solved-help-unexpected-in-homewwwindexphp-on-line-67/#findComment-251674 Share on other sites More sharing options...
chronister Posted May 13, 2007 Share Posted May 13, 2007 If it is solved, then please mark it as solved. There should be a Solved Link in the lower left corner I believe. Quote Link to comment https://forums.phpfreaks.com/topic/51126-solved-help-unexpected-in-homewwwindexphp-on-line-67/#findComment-251686 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.