Feel free to email the Clean Kent team for information, ideas or with details of anything you think we might be interested in.
Thank you, ".$_POST['firstname'].", for your message!
"; echo "The following details have been sent to Clean Kent.
"; echo "First Name:". $_POST['firstname']."
"; echo "Surname:". $_POST['surname']."
"; echo "Phone:". $_POST['phone']."
"; echo "Email:". $_POST['email']."
"; echo "Message: ".substr($_POST['message'],0,50)."...
"; //start building the mail string $msg = "Name:". $_POST['firstname']."
"; $msg .= "Firstname:". $_POST['firstname']."
"; $msg .= "Surname:". $_POST['surname']."
"; $msg .= "Email:". $_POST['email']."
"; $msg .= "Phone:". $_POST['phone']."
"; $msg .= "Message:". $_POST['message']."
"; //set up the mail $recipient = "clean.kent@kent.gov.uk"; //$recipient = "davidj@zerofiftyone.com"; $subject = "Clean Kent Website Contact Form Submission"; $mailheaders = "MIME-Version: 1.0\r\n"; $mailheaders .= "Content-type: text/html; charset=ISO-8859-1\r\n"; $mailheaders .= "From:".$_POST['firstname']." \n"; $mailheaders .= "Reply-To: ".$_POST['email']; //send the mail mail($recipient, $subject, $msg, $mailheaders); $problem=""; } } if( !empty($problem)) { print " "; } ?>