Hello,
I am currently learning how to make a login system, and I am getting an Unexpected T_STRING. Here are the lines where I’m getting it.
session_start(); //Starts the session
print "<div style="display:none;">";//Makes it so the error in the connect file doesnt show, we already know the table users is not created yet!
require ("connect.php"); //Makes sure we are connected to the database
print "</div>"; //End div
if ($_SESSION['admin'] != "verified"){ //If the session isn't set
print "<h1>Welcome to the installer for the user system</h1>"; //Shows the welcome message in a heading
print "<form method="post">"; //Starts the form, make sure you slash out the quotation marks, otherwise the string will end and cause an error!
print "<strong>Username</strong><br />
<input type="text" name="username" /><br /><br />"; //The username entry for the login
print "<strong>Password</strong><br />
<input type="password" name="pass" /><br /><br />"; //Password entry for the login
print "<input type="submit" name="login" value="Login!" />"; //Submits the form
print "</form>"; //Ends the form
}
i am getting on line 2 and on line 7. Any ideas?
Thanks,
Bobby