exists( FTE_SUBMIT_TRIGGER ) ) { // Trim padding from all POST data $Post->trimAll(); // Create validator object require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/Input/fValidate.php'; $validator = new fValidate( $Post ); // Set validation rules if ( $requiredFields = $Post->get( FTE_REQUIRED_FIELDS ) ) { $requiredFields = array_map( 'trim', explode( ',', $requiredFields ) ); foreach( $requiredFields as $field ) { $validator->requireField( $field ); } } // Check validation if ( $validator->validate() ) { // Send email require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/Output/FormToEmail.php'; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/Output/class.phpmailer.php'; $fte = & new FormToEmail( $Post, $Post->get( 'Email_Address' ), // From email $Post->get( 'Full_Name' ) // From name ); $fte->generateBody(); $fte->addServerInfo(); $fte->send(); // Redirect User // header( "Location: " . $Post->get( FTE_NEXT_URL ) ); } else { // Add error data to page $tmpl->setArray( $_POST ); $tmpl->addFormValues( '', 'V_' ); $tmpl->setValidator( $validator ); $tmpl->show( "form_errors" ); $tmpl->addRows( "error_list", $validator->getErrors() ); $tmpl->addFormErrors( '', 'error', 'E_' ); // Re-populate form } } // $Page = & PageFactory::getPage( $tmpl, $Get->get( 'page', 'home' ), $root ); // $Page->display(); ?>
![]() |
![]() |
![]() |
3900 WILLOW STREET
SUITE 250 DALLAS, TX 75226 P. 214.827.3100 F. 214.370.5089 INTERACTIVE TRAVEL GUIDEFIND LOCAL VIEWINGS |
Know of an out-of-the-way beach that's perfect for the show? Do you know the nightlife that keeps sleepy travelers from retiring to their hotels? Or do you simply want to share your thoughts about the show? Contact us. We'd love to hear from you. Interested in contacting |
||