Re: Validation errors for the wrong form

2009-01-04 Thread Smelly_Eddie
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

Re: Validation errors for the wrong form

2009-01-04 Thread mariacheu...@gmail.com
Hi Eddie, Thanks for your reply. However, my validation will check the username and password fields for length, to ensure they're not empty. So this is failing validation for the login sidebar, even though it wasn't submitted. Does anyone else have a register and login form on the same page, and

Re: Validation errors for the wrong form

2009-01-04 Thread Webweave
I think this is related to the controller, and you need to implement something like Multivalidatable (see: http://bakery.cakephp.org/articles/view/multivalidatablebehavior-using-many-validation-rulesets-per-model) I have this in my user_controller to deal with login, registration and signup,

Re: Validation errors for the wrong form

2009-01-03 Thread Nature Lover
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, mariacheu...@gmail.com mariacheu...@gmail.com wrote: Hi all, Apologies if this has been addressed before, but I've searched and can't find a

Re: Validation errors for the wrong form

2009-01-03 Thread mariacheu...@gmail.com
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 nature_lover1...@yahoo.co.in wrote: Hi! Are the forms for both login and register differ.

Validation errors for the wrong form

2008-12-31 Thread mariacheu...@gmail.com
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