The form was not validated. Use your back button to try again.
"; exit; } else { //getform fields $lastname = trim($_POST['lastname']); $firstname = trim($_POST['firstname']); $addr1 = trim($_POST['addr1']); $addr2 = trim($_POST['addr2']); $city = trim($_POST['city']); $state = trim($_POST['state']); $zip = trim($_POST['zip']); $country = trim($_POST['country']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $station = trim($_POST['station']); $comments = trim($_POST['comments']); // email form data to joyce $to = 'info@joyscream.com'; $from = $email; $headers = "From: $from"; $subject = 'Joyscream Mailing List Form Submitted'; $message = "The following information was submitted via the email list sign up form on Joyscream.com:\n\n"; $message = $message."Last Name: ".$lastname."\n"; $message = $message."First Name: ".$firstname."\n"; $message = $message."Address 1: ".$addr1."\n"; $message = $message."Address 2: ".$addr2."\n"; $message = $message."City: ".$city."\n"; $message = $message."State: ".$state."\n"; $message = $message."Zip: ".$zip."\n"; $message = $message."Country: ".$country."\n"; $message = $message."Email: ".$email."\n"; $message = $message."Phone: ".$phone."\n"; $message = $message."Station: ".$Station."\n"; $message = $message."Comments: "."\n".$comments."\n"; // Send the message $ok = @mail($to, $subject, $message, $headers); if ($ok) { //echo "Mail sent! Yay PHP!
"; } else { echo "Mail could not be sent. Sorry!
"; exit; } //say thanks header("Location: jointhanks.html"); echo "submitted done."; exit; } } ?>