title: php stripslashes not removing quotes and backslashes
body: <p>We are trying to remove sanitize some input fields Not even sure this is the correct approach. The contact form has 3 fields name email textarea on a HTML file that sends the data to a verify.php file for posting the data. Our question is what are we doing incorrectly with the code below? The code below is all in one PHP file that is called from the HTML file.</p>
  
  <pre><code>$name = stripslashes($_POST["name"]);
  $email = stripslashes($_POST["email"]);
  $message = stripslashes($_POST["message"]);
  </code></pre>
  
  <p>This is the code that does the posting</p>
  
  <pre><code>$email = $_REQUEST['email'] ;
  $message = $_REQUEST['message'] ;
  $name = $_REQUEST['name'] ;
  $msg = 
  "Name: " . $name . "\r\n" . 
  "Email: " . $email . "\r\n" . 
  "Message: " . $message = wordwrap($message, 70, "\n", true);
  
  
  function isInjected($str) {
      $injections = array('(%0A+)',
      '(%0D+)',
      '(%08+)',
      '(%09+)'
      );
      $inject = join('|', $injections);
      $inject = "/$inject/i";
      if(preg_match($inject,$str)) {
          return true;
      }else {
          return false;
      }
  }
  </code></pre>