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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/167133-login-error/#findComment-881238 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.