mvsveena Posted January 9, 2010 Share Posted January 9, 2010 Hi all,Appreciate your help on below question. Thanks in advance.I have created a Login form in html and onSubmit event (method POST) - it access to php file which connects with the mySql db. In the php file I have used select query to retrieve user name and pwd. Everything is working fine, am getting the query results properly. Once all these things are done, I have to show a message in the same html form in the following cases:1. Login successful2. user id and pwd not match (I have to throw the same login form html page)I struck in how to throw the same html page with the messages like 'user id and pwd not match' or 'userid does not exist' back from the php file.Kindly help on this.-Veen Link to comment Share on other sites More sharing options...
Synook Posted January 9, 2010 Share Posted January 9, 2010 You can either use sessions to store the error message and then redirect (using header(), for example), or just have the PHP code on the same page as the form. Link to comment Share on other sites More sharing options...
mvsveena Posted January 9, 2010 Author Share Posted January 9, 2010 will try your options.. Thanks Synook..... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.