mega-Retrouvailes Registration Form
Name
Surname
Contact Email
Number of Persons
Name(s) of Accompanying Person(s)

Number of Beds
Arrival Date
(provisional)
Departure Date
(provisional)
Kosher Food yes no
Hotel and Room Category
(multiple choice allowed)
$180 (Hotel President Wilson de Luxe Room)
$160 (Hotel President Wilson Regular)
$130-160 price range
$110-130 price range
$90-110 price range
$70-90 price range
Comments
>\" class=bluetext>
"; } function stage2 () { global $first_name, $last_name, $email, $number_persons, $number_beds, $arrival_date, $departure_date, $accompanying1, $accompanying2, $accompanying3, $kosher, $hotel, $description; echo"
Please verify that the information submitted is correct.
Name and second name $first_name $last_name
Contact email $email
Number of persons $number_persons
Name(s) of accompanying person(s) $accompanying1
$accompanying2
$accompanying3
Number of beds $number_beds
Visit dates $arrival_date-$departure_date
Kosher food $kosher
Hotel and room category $hotel
Comment $description
>\">
"; } function stage3 () { global $first_name, $last_name, $email, $number_persons, $number_beds, $arrival_date, $departure_date, $accompanying1, $accompanying2, $accompanying3, $kosher, $hotel, $description, $OrderID; echo "

Dear $first_name $last_name!
Your booking order was recorded. The Order ID is $OrderID.
Please use it for further reference.

Pay for Your Order!
To pay with check or by wire transfer,
Click Here
To pay on-line with a credit card,
Fill This Form
"; } if (!$stage) { stage1(); } if ($stage == 2) { if (!$first_name || !$last_name) { echo "

Please fill your name and surname"; stage1(); } else { $hotel=""; if ($hotel180) $hotel .= 'reserve Hotel President Wilson de Luxe Room
'; if ($hotel160) $hotel .= 'reserve Hotel President Wilson Regular
'; if ($hotel130) $hotel .= 'reserve room in $130-160 range
'; if ($hotel110) $hotel .= 'reserve room in $110-130 range
'; if ($hotel90) $hotel .= 'reserve room in $90-110 range
'; if ($hotel70) $hotel .= 'reserve room in $70-90 range
'; stage2(); } } if ($stage == 3) { $res= mysql_query ("INSERT INTO Booking (first_name, last_name, email, number_persons, number_beds, accompanying1, accompanying2, accompanying3, arrival_date, departure_date, kosher, hotel, description) VALUES ('$first_name', '$last_name', '$email', '$number_persons', '$number_beds', '$accompanying1', '$accompanying2', '$accompanying3', '$arrival_date', '$departure_date', '$kosher', '$hotel', '$description')"); if (!$res) { echo mysql_error(); include ("bottom.php3"); exit; } $OrderID = mysql_insert_id($dbh); stage3(); // --------- SEND MAIL TO user and Admin -------- if ($email) { $Text = "Dear $first_name $last_name! Your booking order was recorded. The Order ID is $OrderID. Please use it for further reference. In order to pay on-line for the booking, please fill the form at http://www.lyregistry.com/payment.html If you want to pay with check or wire the funds, please visit http://b400.com/check_form.html for instructions. Regards, B400 owners."; $From = "support@b400.com"; $Subject = "Booking order $OrderID"; //SendMail ($email, $From, $Subject, $Text); } $To = "suggestion@B400.com"; $From = "support@b400.com"; $Subject = "Booking order $OrderID"; $Text2 = "This is an automatically generated email indicating that $first_name $last_name has expressed his interest in reserving a place in hotel for the future meeting. The corresponding Order ID is $OrderID. More information can be found at http://B400.com/AdminBooking.php3"; SendMail ($To, $From, $Subject, $Text2); } ?>