$PAGE_TITLE="MSTM REUNION - OSU";
require("includes/header.php");
require("includes/db_connect.php");
require("includes/db_enreg.php");
require("class/class.phpmailer.php");
$table="MSTM_REUNION";
$id_table="ID";
$page="mstm_reunion.php";
//Default page
if($_GET['cat']==''){$_GET['cat']='home';}
//ADD AN ENTRY
if($_POST['fct']=="add")
{
$t_champs = array(
"FIRSTNAME",
"MIDDLENAME",
"LASTNAME",
"TITLE",
"AFFILIATION",
"ADDRESS",
"CITY",
"ZIP",
"COUNTRY",
"FAX",
"PHONE",
"EMAIL",
"ATTENDFRI",
"ATTENDSAT",
"ATTENDDINSAT",
"ATTENDLUNSAT",
"ATTENDSUN",
"GUESTS",
"GUEST1",
"GUEST2",
"GUEST3",
"GUEST4",
"GUEST5",
"VEG",
"SIZE",
"SIZE_OTHER"
);
AjRecord($t_champs,$table,$id_table);
//header("Location : $page");
//SEND CONFIRMATION EMAIL
$body="You have been registered to the MSTM Reunion with the following information :";
$body.="
Firstname: ".$_POST['chFIRSTNAME'];
$body.="
Middlename: ".$_POST['chMIDDLENAME'];
$body.="
Lastname: ".$_POST['chLASTNAME'];
$body.="
Address: ".$_POST['chADDRESS'];
$body.="
City: ".$_POST['chCITY'];
$body.="
Zip Code: ".$_POST['chZIP'];
$body.="
Country: ".$_POST['chCOUNTRY'];
$body.="
Fax: ".$_POST['chFAX'];
$body.="
Phone: ".$_POST['chPHONE'];
$body.="
Email: ".$_POST['chEMAIL'];
$body.="
Guests: ".$_POST['chGUESTS'];
$mail = new PHPMailer();
$mail->IsSMTP(); // set mailer to use SMTP
$mail->Host = "localhost"; // specify main and backup server
$mail->SMTPAuth = false; // turn on SMTP authentication
$mail->From = "ramesh.sharda@okstate.edu";
$mail->FromName = "IRIS";
$mail->AddAddress($_POST['chEMAIL']);
$mail->AddReplyTo("stephane.olive@okstate.edu", "IRIS");
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Confirmation for MSTM Reunion registration";
$mail->Body = $body;
if(!$mail->Send())
{
echo "Message could not be sent.
"; echo "Mailer Error: " . $mail->ErrorInfo; exit; } else { echo "
Home
Tentative Planning
Soon Available...";} // Registration Disabled (1=0) if($_GET['cat']=='regis'){ $MAX_GUEST=5; $MAX_DISPLAY_GUEST=0; ?>Registration}?> //********************************* // Contact //********************************* if($_GET['cat']=='contact'){?>ContactAny questions or comments can be sent to joyce.lucca AT okstate DOT edu (MSTM Class of ’98).You can also contact the IRIS lab at 405-744-7598. }?> //********************************* // Gallery //********************************* if($_GET['cat']=='photos'){?> GalleryClose the Gallery SimpleViewer requires Macromedia Flash. Get Macromedia Flash. If you have Flash installed, click to view gallery.
Photos![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() HotelFor those planning to stay overnight in Stillwater, a block of rooms is available at the Hampton Inn. If you are planning to attend, you can make reservations now. The phone number is 405-743-1306. The rate is $89 per night if you reserve under MSTM. }?> |
|||||||