The Links Primary School
       
                                      
             

Contact Us

   
                  
Details:".$_POST['incident_details']."
"; $email_content .= "Name: ".$_POST['n']."
"; $email_content .= "Class: ".$_POST['class']; $url = ""; if (!empty($_FILES['uploaded_file']['tmp_name'])) { $filename = preg_replace('/[^a-zA-Z0-9._-]/', '', $_FILES['uploaded_file']['name']); $filetype = $_FILES['uploaded_file']['type']; $filesize = $_FILES['uploaded_file']['size']; $filetemp = $_FILES['uploaded_file']['tmp_name']; move_uploaded_file($filetemp, 'wp-content/uploads/'.$filename); $url = 'http://www.thelinksprimary.org.uk/wp-content/uploads/'.$filename; } $email_content = "

You have received an contact form message

".$email_content."

"; if (!empty($url)) { $email_content .= "

View report

"; } mail($to_email, "Incident Report", $email_content, $headers) or die('error'); mail("admin@thelinksprimary.org.uk", "Contact Form Message", $email_content, $headers) or die('error'); } if (empty($_POST) || !$validated) { ?>

Please enter your name, email address and message to continue.



Contact Form

Name
 
Email Address
 
Message
 


 
  

Thank you for your message.

<< Back to Contact Us