|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #2 เมื่อ: 14 ตุลาคม 2012, 18:40:19 » |
|
ลองอ่านแล้วงงครับ ไม่มีพื้นฐานด้านนี้เลย ครับผม
|
|
« แก้ไขครั้งสุดท้าย: 14 ตุลาคม 2012, 18:42:23 โดย Bansedition »
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #3 เมื่อ: 14 ตุลาคม 2012, 19:16:37 » |
|
ใครฝ่านมารบกวนขอคำแนะนำด้วยงับ
|
|
|
บันทึกการเข้า
|
|
|
|
Coupon
หัวหน้าแก๊งเสียว
พลังน้ำใจ: 60
ออฟไลน์
กระทู้: 1,050
|
 |
« ตอบ #4 เมื่อ: 14 ตุลาคม 2012, 19:45:03 » |
|
|
|
|
บันทึกการเข้า
|
|
|
|
top18753
เจ้าพ่อบอร์ดเสียว
พลังน้ำใจ: 260
ออฟไลน์
กระทู้: 3,682
|
 |
« ตอบ #5 เมื่อ: 14 ตุลาคม 2012, 19:46:44 » |
|
|
|
|
บันทึกการเข้า
|
ปิดรับบริการ ชั่วคราว อย่างไม่มีกำหนดนะครับ
|
|
|
Bank Franky
สมุนแก๊งเสียว
พลังน้ำใจ: 51
ออฟไลน์
กระทู้: 888
|
 |
« ตอบ #6 เมื่อ: 14 ตุลาคม 2012, 19:46:53 » |
|
เข้ามาส่องครับ 
|
|
|
บันทึกการเข้า
|
ไม่มีไรเป็นสิ่งเเน่นอน จงทำวันนี้ให้ดีที่สุดก็พอ
|
|
|
( ̄(工) ̄)
Newbie
พลังน้ำใจ: 3
ออฟไลน์
กระทู้: 32
|
 |
« ตอบ #7 เมื่อ: 14 ตุลาคม 2012, 21:29:50 » |
|
<?PHP $to = "[email protected]"; $from = "[email protected]"; /// รับค่ามาจาก form โดยใช้ เม็ดตอด post นะครับ $name=$_POST['name']; $topic=$_POST['topic']; $content=$_POST['content']; $subject = "การติดต่อจาก $name"; $msg = " contact ชื่อ : $name ที่อยู่ลูกค้า :$address หัวข้อ : $topic เนื้อหา : $content "; $headers = "From: $from"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("$to", "$subject", "$msg", "$headers"); ?>
แค่นี้แหละครับ อย่างง่ายๆ
|
|
|
บันทึกการเข้า
|
|
|
|
@Roverpost
หัวหน้าแก๊งเสียว
พลังน้ำใจ: 89
ออฟไลน์
กระทู้: 1,816
|
 |
« ตอบ #8 เมื่อ: 14 ตุลาคม 2012, 21:31:37 » |
|
สคริป mailer ลองหาดู
|
|
|
บันทึกการเข้า
|
|
|
|
artmond
ก๊วนเสียว
พลังน้ำใจ: 30
ออฟไลน์
กระทู้: 237
|
 |
« ตอบ #9 เมื่อ: 14 ตุลาคม 2012, 21:34:17 » |
|
<?PHP $to = "[email protected]"; $from = "[email protected]"; /// รับค่ามาจาก form โดยใช้ เม็ดตอด post นะครับ $name=$_POST['name']; $topic=$_POST['topic']; $content=$_POST['content']; $subject = "การติดต่อจาก $name"; $msg = " contact ชื่อ : $name ที่อยู่ลูกค้า :$address หัวข้อ : $topic เนื้อหา : $content "; $headers = "From: $from"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("$to", "$subject", "$msg", "$headers"); ?>
แค่นี้แหละครับ อย่างง่ายๆ ตามท่านนี้เลยครับ Function เดียวจบ ง่ายที่สุดใน 3 โลก
|
|
|
บันทึกการเข้า
|
|
|
|
pim2528
Newbie
พลังน้ำใจ: 0
ออฟไลน์
กระทู้: 13
|
 |
« ตอบ #10 เมื่อ: 14 ตุลาคม 2012, 21:37:33 » |
|
ทำได้ไหมค่ะ อยากมีไว้ที่เว็บเช่นกันค่ะ
|
|
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #11 เมื่อ: 14 ตุลาคม 2012, 22:19:37 » |
|
<?PHP $to = "[email protected]"; $from = "[email protected]"; /// รับค่ามาจาก form โดยใช้ เม็ดตอด post นะครับ $name=$_POST['name']; $topic=$_POST['topic']; $content=$_POST['content']; $subject = "การติดต่อจาก $name"; $msg = " contact ชื่อ : $name ที่อยู่ลูกค้า :$address หัวข้อ : $topic เนื้อหา : $content "; $headers = "From: $from"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("$to", "$subject", "$msg", "$headers"); ?>
แค่นี้แหละครับ อย่างง่ายๆ ตามท่านนี้เลยครับ Function เดียวจบ ง่ายที่สุดใน 3 โลก แบบฟร์อมของผม ตามตัวอย่างด้านบน ผมแก้ไขแบบนี้แล้ว เซฟเป็น php ได้เลยใช้ไหมครับ แล้วที่ขีดเส้นใต้ผมต้องเปลี่ยนเป็นอะไรไหม <?PHP $to = " [email protected]"; $from = " [email protected]"; /// รับค่ามาจาก form โดยใช้ เม็ดตอด post นะครับ คืออะไรครับผม $name=$_POST['name']; $topic=$_POST['topic']; $content=$_POST['content']; $subject = "การติดต่อจาก $name"; $msg = " contact ชื่อ : $name ที่อยู่ลูกค้า :$address หัวข้อ : $topic เนื้อหา : $content "; $headers = "From: $from"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("$to", "$subject", "$msg", "$headers"); ?>
|
|
|
บันทึกการเข้า
|
|
|
|
( ̄(工) ̄)
Newbie
พลังน้ำใจ: 3
ออฟไลน์
กระทู้: 32
|
 |
« ตอบ #12 เมื่อ: 14 ตุลาคม 2012, 22:24:53 » |
|
แสดงว่ายังไม่เป็น php เลยใช่ไหมครับ งั้นแบบนี้ละกัน ลุยทุ่งเอา $headers = "From: [email protected]"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("[email protected]", "ทดสอบระบบเมลล์", "ว่าไงจ๊ะ เกาะเต่าหนาวจุงเบย", "$headers");
|
|
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #13 เมื่อ: 14 ตุลาคม 2012, 22:34:48 » |
|
แสดงว่ายังไม่เป็น php เลยใช่ไหมครับ งั้นแบบนี้ละกัน ลุยทุ่งเอา $headers = "From: [email protected]"; $headers.= "Content-Type: text/html; charset=utf-8"; mail("[email protected]", "ทดสอบระบบเมลล์", "ว่าไงจ๊ะ เกาะเต่าหนาวจุงเบย", "$headers");
ครับผม php ไม่เป้นเลยสักนิดครับ ส่วนเว็บผมทที่ำได้ ก็ทำตามหนังสือนะครับ ไหนก็รบกวนแล้ว ของเปิดเว็บผม หน้านี้ http://www.bansdivingresortkohtao.com/test.html  แล้วรบกวนเขียนให้หน่อยได้ไหมครับผม โดยให้ส่งเมล์ไป ที่ [email protected]จะขอบพระคุณอย่างสูงครับผม
|
|
|
บันทึกการเข้า
|
|
|
|
( ̄(工) ̄)
Newbie
พลังน้ำใจ: 3
ออฟไลน์
กระทู้: 32
|
 |
« ตอบ #14 เมื่อ: 14 ตุลาคม 2012, 22:37:19 » |
|
เอาไฟล์นั้นมาดูดีกว่าครับ จริงๆมันมีอยู่แล้ว แค่ไปตั้งว่าจะให้เมลล์ไปที่ไหนแค่นั้นครับ
|
|
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #15 เมื่อ: 14 ตุลาคม 2012, 22:42:01 » |
|
เอาไฟล์นั้นมาดูดีกว่าครับ จริงๆมันมีอยู่แล้ว แค่ไปตั้งว่าจะให้เมลล์ไปที่ไหนแค่นั้นครับ
ยังไม่มีเลยครับผมยังไม่ได้ทำเลย ได้แต่ลองมั่วไปครับผม ฟร์อมทำแล้ว แต่สคริปยังไม่ได้ทำเลยครับ ทำไม่เป้นจริงๆครับเลยไม่มีเลย (เท่าที่เข้าใจ หากมีฟร์อมแล้ว เราก้ตั้งค่าให้ฟร์อม ดึงสคริปมาใช้ ตอนนี้ยังไม่มีสคริปเลยครับ)
|
|
« แก้ไขครั้งสุดท้าย: 14 ตุลาคม 2012, 22:42:59 โดย Bansedition »
|
บันทึกการเข้า
|
|
|
|
( ̄(工) ̄)
Newbie
พลังน้ำใจ: 3
ออฟไลน์
กระทู้: 32
|
 |
« ตอบ #16 เมื่อ: 14 ตุลาคม 2012, 22:44:23 » |
|
งั้นลองเอาโค้ดในฟอร์มมาดูครับ เดี๋ยวแทรกให้
|
|
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #17 เมื่อ: 14 ตุลาคม 2012, 22:48:34 » |
|
งั้นลองเอาโค้ดในฟอร์มมาดูครับ เดี๋ยวแทรกให้
ใช้ตรงนี้หรือป่าวครับ <form action="sendmail.php" method="post" name="form1" target="new" id="form1"> <table width="100%" border="0" cellpadding="0" cellspacing="5"> <tr> <td colspan="2" align="center"><strong>Personal Info</strong></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td width="24%" align="right">Name :</td> <td width="76%"><input name="Name" type="text" id="Name" size="40" /></td> </tr> <tr> <td align="right">E-mailL :</td> <td><input name="Email" type="text" id="Email" size="40" /></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td align="right">Subject :</td> <td><input name="Subjec" type="text" id="Subjec" size="40" /></td> </tr> <tr> <td align="right">Message :</td> <td><textarea name="Message" cols="31" rows="15" id="Message"></textarea></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="submit" value="submit" style="background-color:#F1A701; color:#02575C; font-weight:bold;" /> </td> </tr> </table> </form>
|
|
|
บันทึกการเข้า
|
|
|
|
Bansedition
ก๊วนเสียว
พลังน้ำใจ: 2
ออฟไลน์
กระทู้: 213
|
 |
« ตอบ #18 เมื่อ: 14 ตุลาคม 2012, 22:51:02 » |
|
งั้นลองเอาโค้ดในฟอร์มมาดูครับ เดี๋ยวแทรกให้
ใช้ตรงนี้หรือป่าวครับ <form action="sendmail.php" method="post" name="form1" target="new" id="form1"> <table width="100%" border="0" cellpadding="0" cellspacing="5"> <tr> <td colspan="2" align="center"><strong>Personal Info</strong></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td width="24%" align="right">Name :</td> <td width="76%"><input name="Name" type="text" id="Name" size="40" /></td> </tr> <tr> <td align="right">E-mailL :</td> <td><input name="Email" type="text" id="Email" size="40" /></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td align="right">Subject :</td> <td><input name="Subjec" type="text" id="Subjec" size="40" /></td> </tr> <tr> <td align="right">Message :</td> <td><textarea name="Message" cols="31" rows="15" id="Message"></textarea></td> </tr> <tr> <td colspan="2" align="center"><img src="Bans_Box/Box 02.png" width="380" height="15" alt="Ban's Diving KohTao" /></td> </tr> <tr> <td colspan="2" align="center"><input type="submit" name="submit" value="submit" style="background-color:#F1A701; color:#02575C; font-weight:bold;" /> </td> </tr> </table> </form> sendmail.php ตัวที่ลองทำ มั่วๆ ครับ -*-
|
|
|
บันทึกการเข้า
|
|
|
|
jommann
สมุนแก๊งเสียว
พลังน้ำใจ: 34
ออฟไลน์
กระทู้: 677
|
 |
« ตอบ #19 เมื่อ: 14 ตุลาคม 2012, 22:51:14 » |
|
code เยอะแยะเลยน่ะครับ ผมคิดว่าน่าจะได้แล้วน่ะครับ อิอิ 
|
|
|
บันทึกการเข้า
|
|
|
|
|