This code for form on website drakecentre.com but can’t get to work at all, help appreciated!
[php]<?php
if($_POST[‘formSubmitRequest’] == “SubmitRequest”) {
// get name
$name = $_POST[‘name’];
// get address
$address = $_POST[‘address’];
// get phone_number
$phone_number = $_POST[‘phone_number’];
// get cell_number
$cell_number = $_POST[‘cell_number’];
// get email_address
$email_address = $_POST[‘email_address’];
// get event_date
$event_date = $_POST[‘event_date’];
// get event_time
$event_time = $_POST[‘event_time’];
// get attendance
$attendance = $_POST[‘attendance’];
// get banquet_room
$banquet_room = $_POST[‘banquet_room’];
// get both_rooms
$both_rooms = $_POST[‘both_rooms’];
// get bar_area
$bar_area = $_POST[‘bar_area’];
// get contact_name
$contact_name = $_POST[‘contact_name’];
// get phone_number
$phone_number = $_POST[‘phone_number’];
// get dvd
$dvd = $_POST[‘dvd’];
// get vhs
$vhs = $_POST[‘vhs’];
// get built-in_screen
$built-in_screen = $_POST[‘built-in_screen’];
// get built-in_projector
$built-in_projector = $_POST[‘built-in_projector’];
// get cable_tv
$cable_tv = $_POST[‘cable_tv’];
// get comcast_digital_radio
$comcast_digital_radio = $_POST[‘comcast_digital_radio’];
// get wireless_internet
$wireless_internet = $_POST[‘wireless_internet’];
// get wireless_mic
$wireless_mic = $_POST[‘wireless_mic’];
// get laptop
$laptop = $_POST[‘laptop’];
// get podium
$podium = $_POST[‘podium’];
// get white_board
$white_board = $_POST[‘white_board’];
// get keyboard
$keyboard = $_POST[‘keyboard’];
// get stage
$stage = $_POST[‘stage’];
// get dance_floor
$dance_floor = $_POST[‘dance_floor’];
// get questions
$questions = $_POST[‘questions’];
// get i_understand
$i_understand = $_POST[‘i_understand’];
// recipient
$to = "[email protected]";
// email subject
$subject = “Drake Centre Event Form”;
//$sender = “From: $email\r\n”;
// build message
$message = “Drake Centre Event Form.\n\n”;
$message .= “name: $name\n\n”;
$message .= “address: $address\n\n”;
$message .= “phone_number: $phone_number\n\n”;
$message .= “cell_number: $cell_number\n\n”;
$message .= “email_address: $email_address\n\n”;
$message .= “event_date: $event_date\n\n”;
$message .= “event_time: $event_time\n\n”;
$message .= “attendance: $attendance\n\n”;
$message .= “banquet_room: $banquet_room\n\n”;
$message .= “both_rooms: $both_rooms\n\n”;
$message .= “bar_area: $bar_area\n\n”;
$message .= “contact_name: $contact_name\n\n”;
$message .= “phone_number: $phone_number\n\n”;
$message .= “dvd: $dvd\n\n”;
$message .= “questions: $questions\n\n”;
$message .= “i_understand: $i_understand\n\n”;
mail($to, $subject, $message, $sender);
header (“Location: thankyou.html”);}
?>
[/php]