pendesign
Member
دوستان میخواستم بدونم مشکل این کد در کجاست ؟ در واقع این کد یک ارسال کننده اطلاعات هست که متاسفانه فقط سرموضوع ها رو ارسال میکنه و به داخلشون کار نداره ! یعنی اگر من اسم خودم رو وارد کرده باشم فقط اسم فیلد رو ارسال میکنه و ، نام من رو که وارد کردم رو نادیده میگیره

کد:
<?
$email_address = "[email protected]";
$email_name = "Proclick : ( Professional webdesign and multimedia )";
$next_page = "thanks.php";
$body = "";
$body .= "name: " . $name . "\n";
$body .= "Last name: " . $family . "\n";
$body .= "organize: " . $company . "\n";
$body .= "Telephone: " . $phone . "\n";
$body .= "website-sub: " . $select . "\n";
$body .= "CHECK: " . $chek1 . "" . $chek2 . "" . $chek3 . "\n";
$body .= "RADIO: " . $radio . "\n";
$body .= "Email: " . $email . "\n";
$body .= "Website: " . $website . "\n";
$body .= "OrderPassage:\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 youre order", " $name,\n
Hi guy , thanks for youre choose. we'll contact with you soon ... .\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";
?>