Advertisement
Zuhairy_Harry

Notes FE

Jun 24th, 2022
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. if(!preg_match("/^[a-zA-z ]*$/",$_POST['name']);
  2. if(!preg_match("/^[0-9]{4}+$/",$_POST['year']);
  3.  
  4. $matrixLength = strlen($_POST['matrix']);
  5.  
  6. if($matrixLength>12 || $matrixLength<12)
  7.  
  8. <?php echo $_SERVER['PHP_SELF'];?>
  9.  
  10. $name = filter_var($_POST['name'],FILTER_SANITIZE_STRING);
  11. else if(!filter_var($_POST['email'], FILTER_VALIDATE_EMAIL))
  12.  
  13. SESSION_START();
  14. $_SESSION['name'] = $name;
  15. SESSION_END();
  16.  
  17. $dob = preg_replace("([^0-9-])", "", $_POST['dob']);
  18.  
  19. <link href="css/bootstrap.min.css" rel="stylesheet">
  20. <script src="js/bootstrap.min.js"></script>
  21.  
  22. form-group, form-inline, form-control
  23.  
  24. placeholder, required
  25.  
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement