Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('display_errors', 1);
- ini_set('display_startup_errors', 1);
- error_reporting(E_ALL);
- /*
- Tested working with PHP5.4 and above (including PHP 7 )
- */
- require_once './vendor/autoload.php';
- use FormGuide\Handlx\FormHandler;
- $pp = new FormHandler();
- $validator = $pp->getValidator();
- $validator->fields(['firstname','lastname', 'email','phone'])->areRequired()->maxLength(50);
- $validator->field('email')->isEmail();
- $validator->field('message')->maxLength(6000);
- $pp->sendEmailTo('aris@minduo.de'); // ← Your email here
- echo $pp->process($_POST);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement