I have a page called userlogin. Has two fields name and password. When they hit the hit the login button I loop back to the same page and with php I check to see if the login and password are there using the post method. All is well. I check the login and password against a mysql database. If it is correct I use the header function to send the user to the next screen.
header("Location: management.php");
I always get the error message "Warning: Cannot modify header information - headers already sent by.."
I do not send any output as far as I know before the header stmt. I do open the mysql database and verify that the user is valid.
I tried using ob_start and ob_end_flush to clear the buffers to no avial.
I have never been able to get this header function to work properly.
Can I get some guidance here? Am lost.
:mad: