You have to fill the dependent select options when generating the form
and set the default based on what the user submits.

HTH,
- Dardo Sordi.

On Feb 6, 2008 11:10 AM, Anna P <[EMAIL PROTECTED]> wrote:
>
> Thank you both for help! Finally, I decided to use tutorial from
> devmoz.com .
> It works, but I have one problem. I use dependent selects in
> registration form. Fields 'city_id' (first select) and
> 'district_id' (second select) must be selected by user - both of them
> are validated in form.
> The problem is - when I select city and district and then fail with
> another field (for example I won't enter my e-mail address in form,
> just to make form validate data) - first select shows me the city I
> chose, but second select doesn't show me the district I chose and it
> also doesn't show district which belong to the chosen city (it shows
> me nothing). Why is that? How to fix this?
> Thanks in advance - Anna:)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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