Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Cannont modify header

Parašė Erdfcvxl· 2013 Sau. 11 22:01:14
#4

Deja, nepadaejo......


if($psl == "login") {
	//@extract($_POST);
 
	if (isset($login)) { 
		//unset($_SESSION['er']);
 
		if($_POST['username'] == "") {$_SESSION['er'] = "Please enter Customer's ID";} 
		elseif ($_POST['passwort'] == "") {$_SESSION['er'] = "Please enter Password";}
		else { $row = mysql_fetch_assoc(mysql_query("Select * from users WHERE u_id='".$_POST['username']."'"));
 
			if($_POST['username'] == $row['u_id'] && $_POST['passwort'] == $row['u_pass']) {$_SESSION['user'] = $row['id'];}
			else{$_SESSION['er'] = "Customer ID or Password is wrong";}
		}
		//if (isset($_SESSION['user'])) {
			header("Location: /customer.php");
		//} else {
		//	header("Location: index.php");
		//}
	}
}
Neatrodo kad kazka buciau praleides :/

Redagavo Erdfcvxl· 2013 Sau. 11 22:01:59