Ahhh, yea thanks for the help. Yea the cakebook was down for 1.2.
Ok so here is what I came up with for 1.2. This is all you need for a
login form.
<?php if ($error): ?>
<p>The login credentials you supplied could not be recognized. Please
try again.</p>
<?php endif; ?>
<?php echo $form->create('Member',array('type' => 'post')); ?>
<?php echo $form->input('Member/email'); ?>
<?php echo $form->input('Member/password'); ?>
<?php echo $form->end('Login'); ?>
7 lines?!?! This is madeness! hahaha
On Jul 19, 10:32 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> 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
> athttp://book.cakephp.org/view/182/formhttp://api.cakephp.org/class_form_helper.htmlhttp://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
-~----------~----~----~----~------~----~------~--~---