http://makeupbysherry.com/contact.php
Php kullanıyor İletişim formu çalışma ve formda gelen e-postaları almak değil gibi görünmüyor. Ben birkaç farklı e-postalar denedim, ve konak Ağ Çözümleri olduğunu. Ben GoDaddy bir test sunucusu üzerinde bu site vardı ve şimdi NETSOL çalışmaz.
Sorun ne olduğundan emin değil, bu site bu sabah hosting unix pencerelerden devredilmiştir ve bu hariç ve çalışıyor gibi görünüyor edildi. Ne oluyor biliyor musun? Teşekkürler!
Bryan
Güncelleme:
<?php
/* Set e-mail recipient */
$myemail = "bryan@bryankremkau.com";
/* Check all form inputs using check_input function */
$name = check_input($_POST['name'], "Enter your name");
$email = check_input($_POST['email']);
$subject = check_input($_POST['subject'], "Write a subject");
$message = check_input($_POST['message'], "Write your message");
$check .= implode(', ', $_POST['check']);
/* If e-mail is not valid show error message */
if (!preg_match("/([\w\-]+\@[\w\-]+\.[\w\-]+)/", $email))
{
show_error("E-mail address not valid");
}
/* If URL is not valid set $website to empty */
if (!preg_match("/^(https?:\/\/+[\w\-]+\.[\w\-]+)/i", $website))
{
$website = '';
}
/* Let's prepare the message for the e-mail */
$message = "Hello!
Your contact form has been submitted by:
Name: $name
E-mail: $email
Subject: $subject
Message: $message
Description: $check
End of message
";
/* Send the message using mail() function */
mail($myemail, $subject, $message);
/* Redirect visitor to the thank you page */
header('Location: thanks.php');
exit();
/* Functions we used */
function check_input($data, $problem='')
{
$data = trim($data);
$data = stripslashes($data);
$data = htmlspecialchars($data);
if ($problem && strlen($data) == 0)
{
show_error($problem);
}
return $data;
}
function show_error($myError)
{
?>
<html>
<body>
<b>Please correct the following error:</b><br />
<?php echo $myError; ?>
</body>
</html>
<?php
exit();
}
?>