views:

16

answers:

0

I still don't understand how I should handle my form input errors within an mvc. I have f.e. the a zend-like controller and a form class and so on.

But where do i include my form file which is not generated but only with pure html

    <html>
 <title>User-Registration</title>
 <head>...</head>

 <body>
  <?php (if($errors)) { ?> 
   <p class="errors"><?php echo $errors; ?></p>
  <?php } ?>


  Sign as new User<br />
  <input value="<?php echo $user->username; ?>" name="username">
  <input value="<?php echo $user->email; ?>" name="email">
  [...]
 </body>
</html>

Where do I connect with the validation class, and where do I get the values for the inputfields? Thanx.