Maria:

You can simply limit validation to only occur if fields are present.

For example, a register page might have two password fields to
compare, while a login will only have one.

A register page might have email, or address while a login will not.

The article below explains how to perform such validation and is based
on a User model. it also includes tips on how to validate user names
and passwords for better security.

http://edwardawebb.com/programming/php-programming/cakephp/complex-validation-cakephp-12

On Jan 3, 7:29 am, "[email protected]" <[email protected]>
wrote:
> They are both different forms, the register form is from a view and
> the login is part of a sidebar element. Both forms have different
> names too.
>
> Thanks for your reply!
>
> On Jan 3, 6:21 pm, Nature Lover <[email protected]> wrote:
>
> > Hi!
>
> > Are the forms for both login and register differ.
> > or you have included the login element within the registration form?
>
> > thanks!
>
> > On Jan 1, 9:33 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > Hi all,
> > > Apologies if this has been addressed before, but I've searched and
> > > can't find a thing.
>
> > > I have a register page, with a login element in the sidebar. The login
> > > element is on every page in the sidebar. When I try register with
> > > invalid data, the correct validation errors show for the register
> > > form. However, the errors are also showing on the login form, even
> > > though that hasn't been submitted. The login form is using jQuery Ajax
> > > to submit.
>
> > > Any ideas anyone?
>
> > > Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to