} } // Set up the form $post_id = 42; $form = new ProfileForm('post', false, array('post_id' => $post_id)); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Profile Form example for Phorm</title> <link rel="stylesheet" href="assets/style.css" type="text/css" /> </head> <body> <?php echo $form->open(); ?> <h1>Profile Data</h1> <?php if ($form->has_errors()) { ?> <div class="phorm_error">Please correct the following errors.</div> <?php } ?> <?php echo $form->as_table(); ?> <div> <input type="button" value="Clear form" onclick="javascript:location.href='<?php