Jump to content

log in


Kano

Recommended Posts

Having a mare with the header function:

 

my script reads on the first line before any output:

 

<?php

if($_SESSION['auth'] = "yes"

{

header ("Location: http://blar blar.php");

}

 

?>

 

There is no space before the <?php

 

and IE is giving me a warning that = cannot add header information - headers already sent by...

 

Can anyone please help me understand this, many thanks.

 

Link to comment
https://forums.phpfreaks.com/topic/41416-log-in/#findComment-200663
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.