The Links Primary School
       
                                      
             

The Links Listens

   
                  
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 incident report

".$email_content."

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

View report

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

Please enter your name, class and worry to continue.

Your name
 
Your class
 
What's your worry or concern?
 



 
  

Thank you for your worry / concern.