CONTACTS |
|
|
To contact us you can use the given form, call us or send
us an e-mail.
$stringmess = "All marked (*) fields are obligatory. Please, fill in fields carefully.";
$form_blok = "
$stringmess
|
";
if ($op != "ds") {
echo "$form_blok";
}
else if ($op == "ds"){
if ($sender_name ==""){
$name_err = "You have not filled in the field Name! ";
$send = "no";
}
if ($sender_mail =="") {
$mail_err ="You have not filled in the field E-mail! ";
$send = "no";
}
else if(!preg_match("/^([a-z,0-9])+\@([a-z,0-9])+(\.([a-z,0-9])+)+$/", $sender_mail))
{
$mail_err1 = "You've filled in the field incorrectlyE-mail! ";
$send = "no";
}
if ($message ==""){
$message_err = "You have not filled in the field Message! ";
$send = "no";
}
if ($send != "no"){
$msg= "The message from a site www.arsnova.com.ua\n";
$msg .= "Name of the sender :\n\t\t$sender_name\n";
$msg .= "E-mail the sender :\n\t\t$sender_mail\n";
$msg .= "Message: \n$message\n\n\n";
$to = "info@arsnova.com.ua"; // вставте свой емаил
$subject = "The message from a site www.arsnova.com.ua"; // вставте Темy сообщения
$mailheaders .="Reply-To: $mail\n\n";
mail ($to, $subject, $msg, $mailheaders);
$stringmess_ok = "Dear $sender_name, your message has been successfully sent. ";
echo "$stringmess_ok ";
echo " ";
}
else if ($send == "no") {
echo "";
echo "$name_err";
echo "$mail_err";
echo "$message_err";
echo "$mail_err1";
echo " ";
echo "";
}
}
?>
|