Exemplo n.º 1
0
    <?php 
echo $helper->js_include_tag('application');
?>
	</head>
	<body>
		<div id='wrapper'>

		<h1>Test Form</h1>

		<form>

      <?php 
foreach ($fields as $field => $error) {
    ?>
        <?php 
    echo $helper->label($field, ucwords($field));
    ?>
        <?php 
    echo $helper->text_input($field, $_POST[$field]);
    ?>
        <?php 
    echo $helper->error_notification($field, $error);
    ?>
      <?php 
}
?>

			<input type='submit' id='submit' name='submit' value='submit' />
			<p class='notification' id='success-message'>Thanks for entering your details</p>

		</form>