Secure Booking Form

This form uses Secure Server encryption technology to ensure the privacy of your enquiry information.

  • *
  • *
  • *
  • *
  • *
  • *
  • *
  • *
  • *
  • *
  • *
    • 2 Berth Standard
    • 2+1 Berth Mercedes
    • 2 Berth Deluxe S/T
    • 4+2 Berth Deluxe
    • Sleeper Van
    • Car 1300 - 1500cc
    • Car 4wd
    • Station Wagon 1800cc - 2200cc
    • Minibus 8 Seater
    • Minibus 11 Seater
    • Minibus 12 Seater
    • Luggage Trailer
    • Navman GPS NZD$7.00 per day
    • Baby Seat NZD$25.00 extra per hire
    • Booster Seat NZD$25.00 extra per hire
    • Portable Toilet NZD$35.00 extra per hire
    • Foldaway Chairs & Table NZD$25.00 extra per hire
    • Snow Chains NZD$50.00 extra per hire
    • Excess reduced to NZD$1500 (NZD$20.00 extra per hire day)
    • Excess reduced to NZD$250.00 (NZD$30.00 extra per hire day)
    • Excess reduced to NZD$00 includes Glass/Tyre cover*. (NZD$40.00 extra per hire day)
    • *Glass/Windscreen Cover (NZD$50.00 extra per hire)
  • *
  • *
  • *
  • Visa MasterCard
  • $x + $y = Stops Spam *

* Required Fields

"; if ($op != "ds") { // they need to see the form echo "$form_block"; } else if ($op == "ds") { $answer=$ran1+$ran2; if ($calulation != "$answer") { $calulation_err = "

Could you please answer the simple maths question!

\n"; $send = "no"; } if ($sender_name == "") { $name_err = "

Could you please enter your name!

\n"; $send = "no"; } if ($s_date == "") { $start_date_err = "

Could you please enter your start date!

\n"; $send = "no"; } if ($f_number_in == "") { $flight_arrival_err = "

Could you please enter your flight number or approx. arrival time!

\n"; $send = "no"; } if ($f_date == "") { $finish_date_err = "

Could you please enter your finish date!

\n"; $send = "no"; } if ($pick_up =="Please Select One") { $pick_up_err = "

Could you please select your pick up location!

\n"; $send = "no"; } if ($drop_off =="Please Select One") { $drop_off_err = "

Could you please select your drop off location!

\n"; $send = "no"; } if ($sender_email == "") { $email_err = "

Could you please enter your e-mail address!

\n"; $send = "no"; } if ($telephone == "") { $phone_err = "

Could you please enter your cellphone number!

\n"; $send = "no"; } if ($c_name == "") { $c_name_err = "

Could you please enter your credit card name!

\n"; $send = "no"; } if ($c_number == "") { $c_number_err = "

Could you please enter your credit card number!

\n"; $send = "no"; } if ($ex_date == "") { $ex_date_err = "

Could you please enter your credit card expiry date!

\n"; $send = "no"; } if ($send != "no") { // separate variables $vehcount = count($vehicle); for ($i=0; $i <= $vehcount; $i++) { $allveh = $allveh . "
" . $vehicle[$i]; } $xtrcount = count($xtras); for ($i=0; $i <= $xtrcount; $i++) { $allxtr = $allxtr . "
" . $xtras[$i]; } // add to database $db_name = "motor_bookings"; $table_name = "booking"; $connection = @mysql_connect("localhost", "motor_craig", "hotcc1") or die("Couldn't connect."); $db = mysql_select_db($db_name, $connection) or die("Couldn't select database."); $sql = "INSERT INTO $table_name (id, site,name,street,country,telephone,email,s_date,f_number_in, f_time_in,f_number_out,f_date_out,f_time_out,f_date_in,pick_up,drop_off,vehicle,instructions,c_name,c_type,c_number,ex_date,xtras,f_date,status,type ) VALUES (\"\", \"$site\", \"$sender_name\",\"$street\", \"$country\", \"$telephone\" , \"$sender_email\" , \"$s_date\" , \"$f_number_in\" , \"$f_time_in\" , \"$f_number_out\" , \"$f_date_out\" , \"$f_time_out\", \"$f_date_in\", \"$pick_up\" , \"$drop_off\" , \"$allveh\" , \"$instructions\" , \"$c_name\" , \"$c_type\" , \"$c_number\" , \"$ex_date\" , \"$allxtr\" , \"$f_date\", \"New\" , \"$type\") "; $result = @mysql_query($sql,$connection) or die("Couldn't execute query."); //send email to customer $msg2 = "Dear $sender_name\n"; $msg2 .= "Thank you for placing a booking online with $site.\n"; $msg2 .= "We will contact you with a confirmation within 24 hours.\n"; $msg2 .= "Discover NZ Motorhome Rentals.\n\n"; $to2 ="$sender_email"; // $to = "bookings@motorhomerentalsnz.co.nz"; $subject2 = "Motor Home Rentals Booking "; $mailheaders2 = "From: bookings@motorhomerentalsnz.co.nz <> \n"; $mailheaders2 .= "Reply-To:bookings@motorhomerentalsnz.co.nz\n\n"; // mail($to2, $subject2, $msg2, $mailheaders2); // send email to owner/operator $msg = "Booking from Discover NZ\n"; $msg .= "You have a booking online to view online at https://www.serversecure.co.nz/~motor/admin/\n\n"; // $to ="craig@webtonic.co.nz"; $to = "bookings@motorhomerentalsnz.co.nz"; $subject = "Discover Secure Booking Form"; $mailheaders = "From: $sender_email <> \n"; $mailheaders .= "Reply-To: $sender_email\n\n"; mail($to, $subject, $msg, $mailheaders); echo "

Thank you, your details are being processed!

"; } else if ($send == "no") { echo "$name_err"; echo "$phone_err"; echo "$email_err"; echo "$start_date_err"; echo "$flight_arrival_err"; echo "$finish_date_err"; echo "$pick_up_err"; echo "$drop_off_err"; echo "$vehicle_type_err"; echo "$calulation_err"; echo "$c_name_err"; echo "$c_number_err"; echo "$ex_date_err"; echo "$form_block"; } } ?>


Back to Top