Jump to content

Login page problem


afilotimos

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/220258-login-page-problem/
Share on other sites

>> 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/

Link to comment
https://forums.phpfreaks.com/topic/220258-login-page-problem/#findComment-1141432
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.