From f7f1bf476f2c6e90f49600eafc291e3f27fed97d Mon Sep 17 00:00:00 2001 From: Traxeon <70642859+traxeon@users.noreply.github.com> Date: Thu, 18 Nov 2021 08:51:32 -0500 Subject: [PATCH] Update for CAPTCHAv3 and added form element. Comment out old CAPTCHA code. --- quform/process.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/quform/process.php b/quform/process.php index f9e4d55..0f8f060 100644 --- a/quform/process.php +++ b/quform/process.php @@ -34,7 +34,7 @@ * You can add multiple email addresses by adding one on each line inside an * array, enclosed in quotes, separated by commas. E.g. * - * $config['recipients'] = array( + * $config['recipients'] = array(/the/// * 'recipient1@example.com', * 'recipient2@example.com' * ); @@ -180,12 +180,23 @@ /** FORM ELEMENT CONFIGURATION **/ +/** + * Configure the topic element + * Filters: Trim + * Validators: Required + */ + +$topic = new Quform_Element('topic', 'Topic: '); +$topic->addFilter('trim'); +$topic->addValidator('required'); +$form->addElement($topic); + /** * Configure the first name element * Filters: Trim * Validators: Required */ -$name = new Quform_Element('name', 'Name'); +$name = new Quform_Element('name', 'From: '); $name->addFilter('trim'); $name->addValidator('required'); $form->addElement($name); @@ -195,7 +206,7 @@ * Filters: Trim * Validators: Required, Email */ -$email = new Quform_Element('email', 'Email address'); +$email = new Quform_Element('email', 'From e-mail: '); $email->addFilter('trim'); $email->addValidators(array('required', 'email')); $form->addElement($email); @@ -205,22 +216,11 @@ * Filters: Trim * Validators: Required */ -$message = new Quform_Element('message', 'Message'); +$message = new Quform_Element('message', 'Message: '); $message->addFilter('trim'); $message->addValidator('required'); $form->addElement($message); -/** - * Configure the topic element - * Filters: Trim - * Validators: Required - */ - -$topic = new Quform_Element('topic', 'Topic'); -$topic->addFilter('trim'); -$topic->addValidator('required'); -$form->addElement($topic); - /** * Configure the CAPTCHA element * Filters: Trim