$postTest = $_POST['Submit']; if ($postTest == "Submit") { $hostname = "worldnet.att.net"; $To = "revtim"; $subject = "Website Form Request"; $name = $_POST['name']; $address = $_POST['address']; $city = $_POST['city']; $phone = $_POST['phone']; $cell = $_POST['cell']; $date = $_POST['date']; $email = $_POST['email']; $location = $_POST['location']; $hair = $_POST['hair']; $photo = $_POST['photo']; $video = $_POST['video']; $flowers = $_POST['flowers']; $music = $_POST['music']; $limo = $_POST['limo']; $guests = $_POST['guests']; $special = $_POST['special']; $cando = $_POST['cando']; $find = $_POST['find']; $msg = "CONTACT INFORMATION \n\n"; $msg = "Clients Name: $name\n"; $msg .= "Address: $address\n"; $msg .= "City, State, Zip: $city\n"; $msg .= "Phone: $phone\n"; $msg .= "Cell Phone: $cell\n"; $msg .="Email: $email\n"; $msg .= "Date of Event: $date\n"; $msg .= "Event Location: $location\n"; $msg .= "Hairdresser: $hair\n"; $msg .= "Photographer: $photo\n"; $msg .= "Video: $video\n"; $msg .= "Flowers: $flowers\n"; $msg .= "Musician: $music\n"; $msg .= "Limo: $limo\n"; $msg .= "Number of Guests: $guests\n"; $msg .= "Special Requests: $special\n"; $msg .= "What I Can Do: $cando\n"; $msg .= "How did you find us: $find\n"; $mailTo = "$To@$hostname"; $mailFrom = "$email"; $success = mail("$mailTo", "$subject", "$msg", "From: $mailFrom\n"); $thanks = "Thank You for your Request, We will contact you promptly."; } else { $thanks = "Please complete all fields."; } ?>