afilotimos Posted November 30, 2010 Share Posted November 30, 2010 Hi I want to make a simple login system which goes like this: a) the 1st page (login_form.php) will check if you are logged or not and give you the login form (username - password) b) when you submit a 2nd page (login_check) will check if you really typed anything . If it finds that the texts are null it will return you to the 1st page (without you pressing anything) and give you the form again with a error message written say above. Else it checks the mysql database.(on another page i think) i find it difficult to navigate through the pages cause header gives me error (headers allready sent) and meta tag doesnt keep the $_POST values. (for example the error meassage) Please help Sorry for my English it's not my native. Quote Link to comment Share on other sites More sharing options...
micah1701 Posted November 30, 2010 Share Posted November 30, 2010 >> i find it difficult to navigate through the pages cause header gives me error (headers allready sent) this problem is usually because you're calling the header() function AFTER some other data has already been sent to the browser. see this thread: http://www.phpfreaks.com/forums/php-coding-help/header-errors-read-here-before-posting-them/ Quote Link to comment 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.