<html> <table width="738" height="464" align="center" bgcolor="#FFFFFF"> <tbody> <tr> <td width="0" height="424" align="left" valign="top" bgcolor="#FFFFFF"> <table width="89%" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td><div align="left"><span class="style1"> สนใจบริการกรุณาฝากข้อความทางเราจะติดต่อกลับทันท</span><span class="style22"></span></div></td> </tr> </table> <form action="phpSendMailContactForm.php" method="post" name="frmMain"> <table width="99%" height="217" border="0"> <tr> <td><div align="right" class="style1"> <div align="left">To</div> </div></td> <td><input name="txtTo" type="text" id="txtTo" value="[email protected]" size="30"></td> </tr> <tr> <td><div align="right" class="style1"> <div align="left">Subject</div> </div></td> <td><input name="txtSubject" type="text" id="txtSubject" size="30"></td> </tr> <tr> <td valign="top"><div align="right" class="style1"> <div align="left">Description</div> </div></td> <td><textarea name="txtDescription" cols="30" rows="10" id="txtDescription"></textarea></td> </tr><tr> <td><div align="right" class="style1"> <div align="left">Form Email</div> </div></td> <td><input name="txtFormEmail" type="text" size="30"></td> </tr> <tr> <td> </td> <td> <input type="submit" name="Submit" value="Send"> <input name="Reset" type="reset" id="Reset" value="Reset" /></td> </tr> </table> <br> </form></td> <td width="1%" valign="middle"> <img src="asset/line.gif" width="1" height="412" /></td> <td width="48%" valign="top"> <table width="98%" height="159" border="0" align="center" cellpadding="6" cellspacing="0"> <tr> <td align="left" valign="middle"> <img src="asset/contact/Customer_Service.jpg" width="330" height="203" /></td> </tr> <tr><td align="left" valign="top"> <div align="left"> <span class="style20"> <font face="MS Sans Serif"> <span class="style8">17/93 หมู่ 10 ซ.ลาดพร้าว 41<br /> ถ.สุขาภิบาล แขวง ลาดพร้าว <br /> เขตลาดพร้าว จ. กรงุเทพฯ 10230</span></font> <font size="1" face="MS Sans Serif"> <br /> <span class="style7"> <span class="style24"> <font face="MS Sans Serif">โทร/Te</font></span> <font face="MS Sans Serif"> <span class="style15"><strong>l</strong> :</span> +<strong> </strong>66-2931 7889-90 <span class="style24"><br /> Mobile</span> : 086-3021104 <strong> </strong> <br /> <span class="style24">แฟกซ์/Fax</span> <span class="style14"> :</span> </strong>+ 66-29317890<br /> <span class="style24">E-mail : </span>[email protected]</font></span><br /> <strong> <br /> </strong> </font> </span> </div> <div align="left" class="style20"> <font size="1" face="MS Sans Serif"> <br /><br /></font></div></td></tr> </table></td></tr></tbody></table> </html> phpSendMailContactForm.php <? $strHeader = "Content-type: text/html; charset=windows-874\n"; // or UTF-8 //$strTo = $_POST["txtTo"]; $strSubject = $_POST["txtSubject"]; $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 "Email Sending."; } else { echo "Email Can Not Send."; } ?>
$strTo = $_POST['txtTo']; // ลองดูครับ
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง