i am getting this error in my php script can anyone help?
Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\Connections\hi.php:12) in c:\program files\easyphp1-8\www\sign up.php on line **38
and line 38 is this
-----header("Location: ". $MM_redirectLoginSuccess );
my code in php is below
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER[‘PHP_SELF’];
if (isset($_GET[‘accesscheck’])) {
$_SESSION[‘PrevUrl’] = $_GET[‘accesscheck’];
}
if (isset($_POST[‘user_type’])) {
$loginUsername=$_POST[‘user_type’];
$password=$_POST[‘user_password’];
$MM_fldUserAuthorization = “”;
$MM_redirectLoginSuccess = “67Microsoft Word - kebabs.pdf”;
$MM_redirectLoginFailed = “Sign Up.php”;
$MM_redirecttoReferrer = true;
?>
<?php require_once(‘Connections/hi.php’); ?>
<? mysql_select_db($database_hi, $hi);
$LoginRS__query=sprintf(“SELECT user_type, user_password FROM userrecords WHERE user_type=’%s’ AND user_password=’%s’”,
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $hi) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = “”;
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && true) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: ". $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
**