Пример #1
0
		<?php 
echo $form->open();
?>
		<h2>Add a comment</h2>
		<?php 
if ($form->has_errors()) {
    ?>
		<p class="phorm_error">Please correct the following errors.</p>
		<?php 
}
?>
		<?php 
echo $form;
?>
		<?php 
echo $form->buttons();
?>
		<?php 
echo $form->close();
?>
		
		<h4>Raw POST data:</h4>
		<?php 
var_dump($_POST);
?>
	
		<hr />
	
		<?php 
// Check form validity
if ($form->is_bound() && $form->is_valid()) {