use input to generate labels with inputs (AFAIK if the name is password the
type is automajically set to password)
<?php echo $form->input('password', array('class' => 'required', 'tabindex'
=> '4')); ?>
$form->text, $form->password, $form->textarea are used when you don't want
the label to be generated
// a confirm password can be made setting the type in the options array
<?php echo $form->input('confirm_password', array('type' => 'password',
'class' => 'required', 'tabindex' => '5')); ?>
also you can use $form->create('Member', Array('class' => 'hfrom', 'url' =>
'/members/login')) then you can just pass 'email' & 'password' to the
inputs
more info at
http://book.cakephp.org/view/182/form
http://api.cakephp.org/class_form_helper.html
http://www.donutczar.com/cake1point2/donuts/form_helper
2008/7/19 Parris <[EMAIL PROTECTED]>:
>
> <?php if ($error): ?>
> <p>Login Credentials do not match. Please try again.</p>
> <?php endif; ?>
>
> <form action="<?php echo $html->url('/members/login'); ?>"
> method="post" style="width:250px;">
> <div>
> <?php echo $form->input('Member/email'); ?>
> </div>
> <div>
> <?php echo $form->password('Member/password'); ?>
> </div>
> <div>
> <?php echo $form->submit('Login'); ?>
> </div>
> </form>
>
>
> A label gets output for input, but not for password. Also some style
> problems exist. This is with firefox 3, and I have cakePHP 1.2.0.7296
> RC2
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---