<? $strTo = $_POST["to"]; $strSubject = $_POST["subject"]; $strMessage = "Name: ".nl2br($_POST["name"])."<br>"; $strMessage = "Surname: ".nl2br($_POST["sname"])."<br>"; $strMessage = "Email: ".nl2br($_POST["email"])."<br>"; $strMessage = "Nickname: ".nl2br($_POST["nname"])."<br>"; $strMessage = "Mobie: ".nl2br($_POST["mobie"])."<br>"; $strMessage = "Old: ".nl2br($_POST["old"])."<br>"; $strMessage = "Sex: ".nl2br($_POST["sex1,sex0"])."<br>"; $strMessage = "Skill: ".nl2br($_POST["skill"])."<br>"; $strMessage = "Know: ".nl2br($_POST["know"])."<br>"; $strMessage = "Job: ".nl2br($_POST["job"])."<br>"; $strMessage = "Maj: ".nl2br($_POST["maj"])."<br>"; $strMessage = "Exp: ".nl2br($_POST["exp"])."<br>"; //*** Uniqid Session ***// $strSid = md5(uniqid(time())); $strHeader = ""; $strHeader .= "From: ".$_POST["name"]."<".$_POST["email"].">\nReply-To: ".$_POST["email"].""; $strHeader .= "MIME-Version: 1.0\n"; $strHeader .= "Content-Type: multipart/mixed; boundary=\"".$strSid."\"\n\n"; $strHeader .= "This is a multi-part message in MIME format.\n"; $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-type: text/html; charset=windows-874\r\n"; // or UTF-8 // $strHeader .= "Content-Transfer-Encoding: 7bit\n\n"; $strHeader .= $strMessage."\n\n"; //*** Attachment ***// if($_FILES["fileAttach"]["name"] != "") { $strFilesName = $_FILES["fileAttach"]["name"]; $strContent = chunk_split(base64_encode(file_get_contents($_FILES["fileAttach"]["tmp_name"]))); $strHeader .= "--".$strSid."\n"; $strHeader .= "Content-Type: application/octet-stream; name=\"".$strFilesName."\"\n"; $strHeader .= "Content-Transfer-Encoding: base64\n"; $strHeader .= "Content-Disposition: attachment; filename=\"".$strFilesName."\"\n\n"; $strHeader .= $strContent."\n\n"; } $flgSend = @mail($strTo,$strSubject,null,$strHeader); // @ = No Show Error // if($flgSend) { echo "Email Sending Ok."; } else { echo "Can not Send Email ."; } ?>
Quote: $strMessage = "Name: ".nl2br($_POST["name"])."<br>"; $strMessage = "Surname: ".nl2br($_POST["sname"])."<br>"; $strMessage = "Email: ".nl2br($_POST["email"])."<br>"; $strMessage = "Nickname: ".nl2br($_POST["nname"])."<br>"; $strMessage = "Mobie: ".nl2br($_POST["mobie"])."<br>"; $strMessage = "Old: ".nl2br($_POST["old"])."<br>"; $strMessage = "Sex: ".nl2br($_POST["sex1,sex0"])."<br>"; $strMessage = "Skill: ".nl2br($_POST["skill"])."<br>"; $strMessage = "Know: ".nl2br($_POST["know"])."<br>"; $strMessage = "Job: ".nl2br($_POST["job"])."<br>"; $strMessage = "Maj: ".nl2br($_POST["maj"])."<br>"; $strMessage .= "Exp: ".nl2br($_POST["exp"])."<br>";
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง