* Configure the first name element
 * Filters: Trim
 * Validators: Required
 */
$firstName = new Quform_Element('full_name', 'Name');
$firstName->addFilter('trim');
$firstName->addValidator('required');
$form->addElement($firstName);
/**
 * Configure the email address element
 * Filters: Trim
 * Validators: Required, Email
 */
$emailAddress = new Quform_Element('email', 'Email address');
$emailAddress->addFilter('trim');
$emailAddress->addValidators(array('required', 'email'));
$form->addElement($emailAddress);
/** END FORM ELEMENT CONFIGURATION **/
function process(Quform $form, array &$config)
{
    // Process the form
    if ($form->isValid($_POST)) {
        // Custom code section #1 - see documentation for examples
        // End custom code section #1
        try {
            $attachments = array();
            $elements = $form->getElements();
            // Process uploaded files
            foreach ($elements as $element) {
                if ($element instanceof Quform_Element_File && array_key_exists($element->getName(), $_FILES) && is_array($_FILES[$element->getName()])) {
                    $file = $_FILES[$element->getName()];
 * Configure the phone number element
 * Filters: Trim
 * Validators: Required
 */
$phone = new Quform_Element('phone', 'Phone #');
$phone->addFilter('trim');
$phone->addValidator('required');
$form->addElement($phone);
/**
 * Configure the email address element
 * Filters: Trim
 * Validators: Required, Email
 */
$email = new Quform_Element('email', 'Email address');
$email->addFilter('trim');
$email->addValidators(array('required', 'email'));
$form->addElement($email);
/**
 * Configure the message element
 * Filters: Trim
 * Validators: Required
 */
$message = new Quform_Element('message', 'Message');
$message->addFilter('trim');
$message->addValidator('required');
$form->addElement($message);
/**
 * Configure the CAPTCHA element (REMOVE ""//"" ON LINES 215/216 WHEN YOU START GETTING SPAM)!!!!
 * Filters: Trim
 * Validators: Required, Identical
 */
 * Configure the regex filtered field
 * Filters: Regex
 * Validators: Required
 */
$regexElement = new Quform_Element('regex_filter');
$regexElement->addValidator('required');
$regexElement->addFilter('regex', array('pattern' => '/[\\d+]/'));
$form->addElement($regexElement);
/**
 * Configure the CAPTCHA field
 * Filters: Trim
 * Validators: Required, Identical
 */
$captcha = new Quform_Element('type_the_word');
$captcha->addFilter('trim');
$captcha->addValidators(array('required', array('identical', array('token' => 'catch'))));
$captcha->setIsHidden(true);
$form->addElement($captcha);
/** END FORM ELEMENT CONFIGURATION **/
function process(Quform $form, array &$config)
{
    // Process the form
    if ($form->isValid($_POST)) {
        // Custom code section #1 - see documentation for examples
        // End custom code section #1
        try {
            $attachments = array();
            $elements = $form->getElements();
            // Process uploaded files
            foreach ($elements as $element) {
                if ($element instanceof Quform_Element_File && array_key_exists($element->getName(), $_FILES) && is_array($_FILES[$element->getName()])) {