Пример #1
0
		<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 
echo $_SERVER['PHP_SELF'];
?>
'" />
			<input type="submit" value="Submit" onclick="javascript:console.log(this.parent);"/>
		</div>
		<?php 
echo $form->close();
?>
		<h4>Raw POST data:</h4>
		<?php 
var_dump($_POST);