โทษทีค่ะ
อันนี้เป็น reservation.php ประมวลผล จากฟอร์มรับแสดงทางหน้าจอและส่งเมลล์หาเรา(แบบง่ายๆอย่างที่บอกน่ะค่ะ)
<?php
$firstname=$_POST["firstname"];
$lastname=$_POST["lastname"];
$nationality=$_POST["nationality"];
$travelfrom=$_POST["travelfrom"];
$telephone=$_POST["telephone"];
$email1=$_POST["email1"];
$email2=$_POST["email2"];
$checkin=$_POST["checkin"];
$checkout=$_POST["checkout"];
$night=$_POST["night"];
$guest=$_POST["guest"];
$room=$_POST["room"];
$additional=$_POST["additional"];
if ($firstname=="" or $lastname=="" or $telephone=="" or $email1=="" or $checkind=="" or $checkinm=="" or $checkiny=="" or $checkoutd=="" or $checkoutm=="" or $checkouty=="" ) {
echo "<h3><center><font face='geneva' color='#e30d19' size=5> ERROR : </front><font face='geneva' color='#ffffff' size=5> please type in <font face='geneva' color='#e30d19' size=5>* </front><font face='geneva' color='#ffffff' size=5> boxs</front><h3></center>\n";
echo "<center><A HREF= reservation.html>.....back to Reservation.....</A></center>";
}
else {
print "<center><font face='geneva' color='#ffffff' size=5>Send Resarvation Complete</font></center><br> \n";
print "<br> \n";
print " </front><font face='geneva' color='#ffffff'>Name : $firstname $lastname</font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Nationality : $nationality </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Travel From : $travelfrom </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>TelePhone No. : $telephone </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Email 1 : $email1 </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Email 2 : $email2 </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Check-in : $checkind $checkinm $checkiny </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Check-out : $checkoutd $checkoutm $checkouty </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>No. of Night : $night </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>No. of Guest : $guest </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Room Type : $room </font><br>\n";
print " </front><font face='geneva' color='#ffffff'>Additonal Requirements : $additional</font> <br>\n";
$sendto = "
[email protected]";
$subject = "FourInn Customers Reservation";
$message = "FourInn Customers Reservation \n Name : $firstname $lastname \n Nationality : $nationality \n Travelfrom : $travelfrom \n Telephone : $telephone \n E-mail1 : $email1 \n E-mail2 : $email2 \n Checkin : $checkind $checkinm $checkiny \n Checkout : $checkoutd $checkoutm $checkouty \n Night : $night \n Guest : $guest \n Room : $room \n Additonal : $additional \n ";
mail ($sendto ,$subject ,$message);
}
?>
ไม่รู้ต้องทำไงต่อ ขอบคุณที่เข้ามาบอกนะคะ รอคำแนะนำอยู่ค่ะ