السلام عليكم
عندي الفورم تبع ال feedback لا يعمل بشك صحيح ولا تصلني اي رساله على الايميل مع العلم بان السيرفر محلي.
هذا هو الكود بالنسبه لكل صفحه متعلقه بالفورم. الرجاء المساعده في اكتشاف الحل.
feedback.html
<form method="post" action="sendmail.php">
Name: <input name="name" type="text" /><br />
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
<body>
sendmail.php
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
if (!isset($_REQUEST['email'])) {
header( "Location: feedback.html" );
}
elseif (empty($email) || empty($message)) {
header( "Expires: Mon, 20 Dec 1998 01:00:00 GMT" );
header( "Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT" );
header( "Cache-Control: no-cache, must-revalidate" );
header( "Pragma: no-cache" );
?>
<head><title>Error</title></head>
<body>
<h1>Error</h1>
<p>
Oops, it appears you forgot to enter either your
email address or your message. Please press the BACK
button in your browser and try again.
</p>
<?php
}
else {
mail( "muzamil_2c9@hotmail.com", "Feedback Form Results",
$message, "From: $name <$email>" );
header( "Location: thankyou.html" );
}
?>
</body>
</head>
<?php
]