squiblo Posted July 23, 2009 Share Posted July 23, 2009 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 More sharing options...
squiblo Posted July 23, 2009 Author Share Posted July 23, 2009 sorry i have posted in the wrong section Link to comment https://forums.phpfreaks.com/topic/167133-login-error/#findComment-881238 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.