require_once("../include/db.inc.php"); require_once("../include/go.inc.php"); require_once("../include/config.inc.php"); $register = new go("ceos_registration"); if ($submit && $submit ="submit") { if ($HTTP_POST_VARS["IsBooking"]==1) $IsBooking = 0; else $IsBooking =1; $user_password = mktime(); $fields=array("Title","FirstName","FamilyName","Organization","Address","Telephone","Fax","Email","IsBooking","Hotel","RoomType","PriceRange","DateArrival","DateDeparture","NumofNight","Topic","IsPoster","NeedMap","AttendBanquet","AttendTour","Special","Password","TimeReg"); $values=array($HTTP_POST_VARS["Title"],$HTTP_POST_VARS["FirstName"],$HTTP_POST_VARS["FamilyName"],$HTTP_POST_VARS["Organization"],$HTTP_POST_VARS["Address"],$HTTP_POST_VARS["Telephone"],$HTTP_POST_VARS["Fax"],$HTTP_POST_VARS["Email"],$IsBooking,$HTTP_POST_VARS["Hotel"],$HTTP_POST_VARS["RoomType"],$HTTP_POST_VARS["PriceRange"],$HTTP_POST_VARS["DateArrival"],$HTTP_POST_VARS["DateDeparture"],$HTTP_POST_VARS["NumofNight"],$HTTP_POST_VARS["Topic"],$HTTP_POST_VARS["IsPoster"],$HTTP_POST_VARS["NeedMap"],$HTTP_POST_VARS["AttendBanquet"],$HTTP_POST_VARS["AttendTour"],$HTTP_POST_VARS["Special"],$user_password,$register->TimeNow(1)); if ($register->Add($fields,$values)) $IsSuccessed = 1; else $IsSuccessed = 0; } ?>
| |||||||||||
Thanks for you registration!And your password is ".$user_password."
"; /* To send HTML mail, you can set the Content-type header. */ $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; /* additional headers */ $headers .= "From: Prof.Liangming LiuProf. Liu:
".$from." has just registered online!
To view his personal information detail at here!