Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP help


ghost's Avatar
0 0

Hey im new to php and learning it. I am trying to make my own script that llets u log in but for some reason i always get his error…:angry:

markupParse error: syntax error, unexpected T_ELSE in C:\wamp\www\loged.php on line 6

i am using w3 schools to learn but i cant figure it out. please help me. here is my code:

if($password=="hacker");
{
echo "Welcome " . $user;
echo " Good to see you here";
}
else
echo "UNATHORIZED USER";
?>```

the login forms are in html.. if u need to see it let me know.

ghost's Avatar
0 0

take the ; off the end of your if

if(password == hacker) { blah }


ghost's Avatar
0 0

yes thnx it worked!! :D