This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$contact_form = Form('ao2', './') | |
->setRenderer( $r ) // Tells the form which renderer to use to generate its output. | |
//->_show_submitted(true) // Causes the form to show submitted values | |
//->_show_html(true) // Causes the form's renderer to expose the generated HTML for the form. | |
//->_show_form_elements(true) // Causes the form to show its internal structure | |
//->_show_form_errors(true) | |
//->match('myContactFormValidator') // Adds a validator to the form. You can use a form-level validator to add complex inter-item validation. | |
->onSuccess('MySuccessHandler') | |
->novalidate() // Stop FF doing client-side evaluation whilst testing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include($config->paths->root . "site/.libs/countries/countryList.class.php"); | |
$ct = new CountryList(); | |
$countries = $ct->getCountryList($lang); | |
$show_form = true; | |
$note = '<h3>Danke!</h3>'; | |
$errors = ''; |