Answer is add the option: 'div' => 'required' Gary
On 8/27/07, Pablo Viojo <[EMAIL PROTECTED]> wrote: > > http://api.cakephp.org/1.2/class_form_helper.html > > On 8/27/07, bujanga <[EMAIL PROTECTED]> wrote: > > > > On my registration form, I wish to verify the user's password entry by > > having them enter it twice. The FormHelper magically indicates which > > fields must be completed when the field is part of the model. How can > > it be done to indicate a required field when it is not part of the > > model. Finally, is there anyplace that enumerates the options for the > > FormHelper::input? (looked in many places). > > > > Snip of form register.ctp > > > > <?php echo $form->input('password', array('label' => 'Password', > > 'size'=>'40')) ?> > > > > <?php echo $form->input('Temp.verify', array('label' => 'Verify > > Password', 'type' => 'password', 'size'=>'40')) ?> > > > > Thanks, > > > > Gary > > > > > > > > > > -- > Pablo Viojo > [EMAIL PROTECTED] > http://pviojo.net > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
