سلام من مدتها روی سایتم از مامبو استفاده می کردم و خیلی راحت بودم
حالا روی یه سایت دیگه ام که با html هست می خوام یه فرم تماس درست کنم این موتور php نمی دونم چشه فقط ایمیل خالی برام می فرسته محتویات پر شده فرم تماس رو نمی فرسته .
گفتم دوستان php شون خوبه یه کمکی بکنن. مرسی
کد:<?
$email_address = "???@yahoo.com";
$email_name = "??? )";
$next_page = "thanks.html";
$body = "";
$body .= "NAME: " . $name . "\n";
$body .= "FAMILY: " . $family . "\n";
$body .= "COMPANY: " . $company . "\n";
$body .= "PHONE: " . $phone . "\n";
$body .= "SELECT: " . $select . "\n";
$body .= "CHECK: " . $chek1 . "" . $chek2 . "" . $chek3 . "\n";
$body .= "RADIO: " . $radio . "\n";
$body .= "EMAIL: " . $email . "\n";
$body .= "WEBSITE: " . $website . "\n";
$body .= "MESSAGE:\n " . ereg_replace("\n", "\n ", $message) . "\n";
$headers = "";
$headers .= "From: " . $email_name . " <" . $email_address . ">\n";
$headers .= "X-Sender: <" . $email_address . ">\n";
$headers .= "X-Mailer: PHP\n";
$headers .= "X-Priority: 1\n";
$headers .= "Return-Path: <" . $email_address . ">\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
@mail($email_address, "Contact Center", "<pre>" . $body . "</pre>", $headers);
header("Location: " . $next_page);
//This sends a confirmation to your visitor
mail("$email","Thank You for visiting rahbord", "Hi $name,\n
Thank you for your interest in rahbord!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = " MERSI ";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
?>
