I have an html page called login.html. It has a username , password field, and Submit button.
I have a script that checks a database for a username/password match, Validate.php.
If there is no match found, I return the user back to the Login page with the line
header("Location:Login.html");
My question is, rather than just putting them back on login.html, , I'd like to write a message on the login.html page stating something like "login unsuccessful, please try again."
Is there a function I can use to do this, or is it even possible?
Thanks,
Robert
writing to an HTML page from a PHP script
Moderator: General Moderators
- nickman013
- Forum Regular
- Posts: 764
- Joined: Sun Aug 14, 2005 12:02 am
- Location: Long Island, New York
Problem solved.
Thanks for the quick replies. You have solved my dilemma.