dave0305 0 Report post Posted May 29, 2011 (edited) Hello I'm a beginner setting up a login for my site... When i try and log in... the following message comes up: Parse error: syntax error, unexpected T_STRING in C:xampphtdocschecklogin.php on line 25 It took me ages to write those codes, so I really want to get it to work This is a part from my code: if($count==1) { session_register("myusername"); session_register("mypassword"); header("location:login_success.php); } else { echo "Wrong Username or Password"; thats 25th line... } I cant see anythink wrong with it... f you know what did i do wrong please let me know If you need more or the whole code I will post it. Thanks in advance Dave Edited April 6, 2012 by moderator (see edit history) Share this post Link to post Share on other sites