<? $strTo = $_POST["txtTo"]; $strSubject = $_POST["txtSubject"]; $strHeader = "Content-type: text/html; charset=UTF-8\n"; // or UTF-8 // $strHeader .= "From: ".$_POST["txtFormName"]."<".$_POST["txtFormEmail"].">\nReply-To: ".$_POST["txtFormEmail"].""; $strMessage = nl2br($_POST["txtDescription"]); $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo "<script>alert('ระบบได้ส่งอีเมล์เรียบร้อยแล้ว!!');</script>"; echo "<script>window.location='home.php';</script>"; } else { echo "<script>alert('เกิดข้อผิดพลาดในการส่งอีเมล์!!');</script>"; echo "<script>window.location='contact.php';</script>"; } ?>
$strMessage = nl2br("$_POST["txtDescription"]); $strMessage .= nl2br("$_POST["txtTel1"]); $strMessage .= nl2br("$_POST["txtTel2"]);
<? $strTo = $_POST["txtTo"]; $strSubject = $_POST["txtSubject"]; $strHeader = "Content-type: text/html; charset=UTF-8\n"; // or UTF-8 // $strHeader .= "From: ".$_POST["txtFormName"]."<".$_POST["txtFormEmail"].">\nReply-To: ".$_POST["txtFormEmail"].""; $strMessage = nl2br($_POST["txtDescription"]); $strMessage = nl2br($_POST["txtTel1"]); $flgSend = mail($strTo,$strSubject,$strMessage,$strHeader); // @ = No Show Error // if($flgSend) { echo "<script>alert('ระบบได้ส่งอีเมล์เรียบร้อยแล้ว!!');</script>"; echo "<script>window.location='home.html';</script>"; } else { echo "<script>alert('เกิดข้อผิดพลาดในการส่งอีเมล์!!');</script>"; echo "<script>window.location='contact.php';</script>"; }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง