PHP code example of vbpupil / input-validation

1. Go to this page and download the library: Download vbpupil/input-validation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

vbpupil / input-validation example snippets


 use vbpupil\InputValidation;
 
 

 //indicates what inputs it should be checking
 $check = array('telephone','postcode','mobile','textarea');

 

  if(isset($_POST)) {
      $r = InputValidation::validate($_POST, $check);
  
      var_dump($r);
  }
  
html
 session_start();