Paste Search Dynamic
Recent pastes
test input
  1. <?php
  2. // define variables and set to empty values
  3. $name = $email="";
  4.  
  5. if ($_SERVER["REQUEST_METHOD"] == "POST") {
  6.   $name = test_input($_POST["name"]);
  7.   $email = test_input($_POST["email"]);
  8. }
  9.  
  10. function test_input($data) {
  11.   $data = trim($data);
  12.   $data = stripslashes($data);
  13.   return $data;
  14. }
  15. ?>
Parsed in 0.017 seconds