bize yazın sayfası yaptım ama kullandığım header şu sorunu veriyor anlamadım bir türlü yardımcı olabilirmisiniz.
Warning: Cannot modify header information - headers already sent by (output started at /home/ayhan/public_html/iletisim.php:4) in /home/ayhan/public_html/iletisim.php on line 34
<?php ob_start();
function spamcheck($field)
{
if(filter_var($field, FILTER_VALIDATE_EMAIL))
{
return TRUE;
}
else
{
return FALSE;
}
}
if (isset($_REQUEST['email']))
{//if "email" is filled out, proceed
//check if the email address is invalid
$mailcheck = spamcheck($_REQUEST['email']);
if ($mailcheck==FALSE)
{
header ("Location: iletisim2.html");
}
else
{//send email
$email = $_REQUEST['email'] ;
$subject = $_REQUEST['subject'] ;
$message = $_REQUEST['message'] ;
mail("ayhan628@mynet.com", "Subject: $subject",
$message, "From: $email" );
header ("Location: iletisim3.html");
}
}
else
{ header ("Location: iletisim2.html");
}
ob_end_flush();
?>