Hi,

I have a registration form that has enum set radio buttons for gender,
and a select box for user type.  I also use the same page for updating
the users details (mainly).

When I go initially to set a new user or to update a member, it sets
the information correctly in these fields.  For example, if I am
female, it has F checked, and if I am a consumer, it has consumer
selected.

However, if it fails validation on update/register, it loses this
information.  I've done a var_dump on $this->data and it is appearing
there, but it doesn't seem to be finding the previously selected
values.  I can't for the life of me work out why.

I assume that I may need to set the default values again on failure,
but I also cannot work out what I should be setting them to.  I've
tried $this->set('gender', $this->data['User']['gender']), $this-
>set('User.gender', ...) etc.  None works.

Has anyone else come across this problem and have a brilliant solution
on how to fix it?

cheers

Di
--~--~---------~--~----~------------~-------~--~----~
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