Jump to content

Heading Errors


Lucian

Recommended Posts

Hello,

Everytime i run this login PHP code i am using i keep getting these errors:

Warning: Cannot modify header information - headers already sent by (output started at /home/www/jamhol37.freehostia.com/login.php:6) in /home/www/jamhol37.freehostia.com/login.php on line 68

Warning: Cannot modify header information - headers already sent by (output started at /home/www/jamhol37.freehostia.com/login.php:6) in /home/www/jamhol37.freehostia.com/login.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /home/www/jamhol37.freehostia.com/login.php:6) in /home/www/jamhol37.freehostia.com/login.php on line 72

This is the code i have on those lines:

setcookie(ID_my_site, $_POST['username'], $hour);
setcookie(Key_my_site, $_POST['pass'], $hour);


header("Location: members.php");

Could someone please tell me how to fix this problem i am having.

Thanks,
Lucian
Link to comment
https://forums.phpfreaks.com/topic/33972-heading-errors/
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.