Helllo I am getting Warning: Cannot modify header information - headers already sent by error on header("location: sucessful_registration.php"); line
please help me how can i fix it
function NewUser()
{
$full_name = $_POST['full_name'];
$user_name = $_POST['user_name'];
$password = $_POST['password'];
$email_address = $_POST['email_address'];
$phone = $_POST['phone'];
$address = $_POST['address'];
$city = $_POST['city'];
$zip = $_POST['zip'];
$state = $_POST['state'];
$country = $_POST['default_country'];
$member_id = $_POST['member_id'];
$card_csv = $_POST['card_csv'];
$activation_new = "0";
$query = "INSERT INTO user_registration (full_name,username,password,email,phone,address,city,zip,state_province,country,member_id,member_csv,activation) VALUES ('$full_name','$user_name','$password','$email_address','$phone','$address','$city','$zip','$state','$country','$member_id','$card_csv','$activation_new')";
$data = mysql_query ($query)or die(mysql_error());
if($data)
{
header("location: sucessful_registration.php");
}
}
newuser();
}