This time I have taken pains to describe the heart of the problem.I get as far as clicking the POST button and keep getting the following error:
HP Fatal error: Uncaught Error: Class 'FormGuide\Handlx\FormHandler' not found >in /home/y7w92jim515s/public_html/feedback_form_template/handler.php:14Stack trace:#0 {main}thrown in /home/y7w92jim515s/public_html/feedback_form_template/handler.php >on line 14
The file "handler.php" (shown below with my own email inserted) is the only file in the entire form template that includes anything even remotely resembling FormGuide\Handlx\FormHandler
. The same is true of two other templates downloaded from http://reusableforms.com. In fact every code file in each of those templates is the same except the formpage.html file.
The template I chose is "http://reusableforms.com/d/d1/php-email-form".
WORSE, I HAVE NOT FOUND ANY OTHER WEBSITE THAT HAS DOWNLOADABLE REUSABLE FORM TEMPLATES.My website is http://www.techwritermilt.com. Some of the links are still dummies, but otherwiseeverything within the site works.
<?phpini_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(['name','email'])->areRequired()->maxLength(50);$validator->field('email')->isEmail();$validator->field('comments')->maxLength(6000);$pp->sendEmailTo('techwritermilt@gmail.com'); // ← Your email hereecho $pp->process($_POST);