Advertisement
Guest User

Untitled

a guest
May 23rd, 2018
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 1);
  3. ini_set('display_startup_errors', 1);
  4. error_reporting(E_ALL);
  5. /*
  6. Tested working with PHP5.4 and above (including PHP 7 )
  7.  
  8. */
  9. require_once './vendor/autoload.php';
  10.  
  11. use FormGuide\Handlx\FormHandler;
  12.  
  13.  
  14. $pp = new FormHandler();
  15.  
  16. $validator = $pp->getValidator();
  17. $validator->fields(['firstname','lastname', 'email','phone'])->areRequired()->maxLength(50);
  18. $validator->field('email')->isEmail();
  19. $validator->field('message')->maxLength(6000);
  20.  
  21.  
  22.  
  23.  
  24. $pp->sendEmailTo('aris@minduo.de'); // ← Your email here
  25.  
  26. echo $pp->process($_POST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement