Jump to content

login error


squiblo

Recommended Posts

hi, im quite a noob to php and i need some help with login, what i want is, an error message to appear on the same page as the login page saying something like "Wrong username or password" when someone has made a mistake logging in.

 

 

"session_register("myusername");

session_register("mypassword");

header("location:profile.php");

}

else {

echo "Wrong Username or Password";

}"

 

this script i have directs me to another page which i do not want, does anyone have a solution?

 

Link to comment
https://forums.phpfreaks.com/topic/167133-login-error/
Share on other sites

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.