/* RESERVATIONS */ // check if form has been posted if (isset($_POST['firstname'])) { // form has been posted // // mail settings $to = "ladyfest.romania@gmail.com"; // who the email should be sent to $subject = "Reservations for LadyfestRomania from website"; // subject of email // // get variables $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_POST['email']; $city = $_POST['city']; $phone = $_POST['phone']; $fridayticket = $_POST['fridayticket']; $fridayhousing = $_POST['fridayhousing']; $saturdayticket = $_POST['saturdayticket']; $saturdayhousing = $_POST['saturdayhousing']; $sundayticket = $_POST['sundayticket']; $sundayhousing = $_POST['sundayhousing']; $alldaysticket = $_POST['alldaysticket']; $alldayshousing = $_POST['alldayshousing']; // $message = "Rezervarea ta a fost trimisa. Your reservation has been mailed off."; // prepare email $msg = "Dear LadyFest person, A reservation has been made for Ladyfest-Timisoara through the Ladyfest website. The details are as follows: Prenume/First name: $firstname Nume/Last name: $lastname Email: $email Din /From: $city Numar de telefon/Telephone number: $phone Ticket details/Detalii bilete: "; if ($fridayticket!=""||$fridayhousing!="") { $msg .= "Bilete pt. Vineri/Tickets for Friday "; if ($fridayticket!="") $msg .= " Festivaltickets: $fridayticket "; if ($fridayhousing!="") $msg .= " Housingtickets: $fridayhousing "; } if ($saturdayticket!=""||$saturdayhousing!="") { $msg .= "Bilete pt. Sambata/Tickets for Saturday "; if ($saturdayticket!="") $msg .= " Festivaltickets: $saturdayticket "; if ($saturdayhousing!="") $msg .= " Housingtickets: $saturdayhousing "; } if ($sundayticket!=""||$sundayhousing!="") { $msg .= "Bilete pt. Duminica/Tickets for Sunday "; if ($sundayticket!="") $msg .= " Festivaltickets: $sundayticket "; if ($sundayhousing!="") $msg .= " Housingtickets: $sundayhousing "; } if ($alldaysticket!=""||$alldayshousing!="") { $msg .= "Bilete pt. toate zilelele/Tickets for all days "; if ($alldaysticket!="") $msg .= " Festivaltickets: $alldaysticket "; if ($alldayshousing!="") $msg .= " Housingtickets: $alldayshousing "; } $msg .= " The LadyFest Romania website"; // mail it off mail($to,$subject,$msg); } else { // no form posted // $message = ""; } ?>