my PHP-Process file
a guest May 5th, 2016 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- $event_date = $_POST['event_date'];
- $name = $_POST['full_name'];
- $event_type = $_POST['event_type'];
- $telephone = $_POST['telephone'];
- $email = $_POST['email'];
- $email_from = 'firstname.lastname@example.org';
- $email_subject = "New Form submission from your website";
- $email_body = "You have received a new message via your websites form from $name.\n".
- "The date requested for the event is:\n $event_date\n".
- "The type of event is:\n $event_type \n".
- "The customers contact telephone number is:\n $telephone \n".
- "From:\n $email \n".
- $to = "email@example.com";
- $headers = "From: $email_from \r\n";
- $headers = "Reply-To: $email \r\n";
- //Load thank you page once form is submitted
- header ('Location: contact-thank-you.html');
- function IsInjected($str)
- $injections = array('(\n+)',
- $inject = join('|', $injections);
- $inject = "/$inject/i";
- return true;
- return false;
- echo "Bad email value!";
RAW Paste Data