Jump to content

headers


leequalls

Recommended Posts

I am tiring to use headers. With the code below I get the following error: Warning: Cannot modify header information - headers already sent by (output started at /home/index.php:50) in /home/members.php on line 11

 

<?

session_start();

$form = $_POST['form'];
$pass = $_GET['pass'];
$error = "1";

if ($_GET["logout"] == "true") { unset($_SESSION["login"]); unset($_SESSION['sess_name']); unset($_SESSION['sess_passwd']); 

header("Location:". $_SERVER['SERVER_NAME']); 
}

Link to comment
https://forums.phpfreaks.com/topic/138259-headers/
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.