Example #1
0
echo $form->close();
?>

		<h4>Raw POST data:</h4>
		<?php 
var_dump($_POST);
?>

		<hr />

		<?php 
if ($form->is_bound() && $valid) {
    ?>
			<h4>Processed and cleaned form data:</h4>
			<?php 
    var_dump($form->cleaned_data());
    ?>
		<?php 
} elseif ($form->has_errors()) {
    ?>
			<h4>Errors:</h4>
			<?php 
    var_dump($form->get_errors());
    ?>
		<?php 
} else {
    ?>
			<p><em>The form is unbound.</em></p>
		<?php 
}
?>