Hi all,
I am struggling with the following issue, I am building a login form, which I want to have the look of my CSS, but upon succesful login, I want it to automatically redirect back to where the user came from.
I include my CSS like this:
include('../inc/style.css');
and I redirect back to the main page like this:
header("Location: index.php");
Although upon succesful login a user now gets this:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/inc/style.css:1) in /var/www/html/login/login.php on line 37
How can I have my CSS on the page and have PHP redirect upon succesful login ?