<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()) { ?> <h4>Processed and cleaned form data:</h4> <?php