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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.