Skip to content

Commit

Permalink
Update for CAPTCHAv3 and added form element. Comment out old CAPTCHA …
Browse files Browse the repository at this point in the history
…code.
  • Loading branch information
traxeon committed Nov 18, 2021
1 parent ece8a17 commit f7f1bf4
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions quform/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -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///
* '[email protected]',
* '[email protected]'
* );
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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
Expand Down

0 comments on commit f7f1bf4

Please sign in to comment.