include ("kolonka3.inc");
?>
|
$mailto="antho@antho.net";
if (empty($ok))
{
?>
}
else
{
if (empty($username))
{
$error .= "Sorry, you didn't fill the field: Name ";
}
if(!preg_match("/^([a-z,0-9])[email protected]([a-z,0-9])+(.([a-z,0-9])+)+$/", $mailfrom))
{
$error = "Sorry, you didn't fill the field: E-mail ";
}
if (empty($country))
{
$error .= "Sorry, you didn't fill the field: Country ";
}
if (empty($message))
{
$error .= "Sorry, you didn't fill the field: Your question ";
}
if ($error)
{
echo $error;
echo " Back to previous page";
exit;
}
$subject="Question from $mailfrom";
$body="Name: $username
E-mail: $mailfrom
Country: $country
Comments:
$message";
$body=convert_cyr_string (stripslashes($body),w,k);
$subject=convert_cyr_string (stripslashes($subject),w,k);
$sucess = mail($mailto, $subject, $body, "From: $email X-Mailer: PHP/" . phpversion());
if ($sucess)
{
echo "Thank you! Your question has been sent.
";
echo "Back to previous page";
}
}
?>
|