Skip to content

Instantly share code, notes, and snippets.

$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.
<?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 = '';