Hi I have a standard cakePHP form with 2 select boxes.

The 2nd select box is populated with an AJAX call based on what is
selected in the first one.

The ajax call replaces the entire contents of the div with this
id="sub_type_select".

Problem is when I submit the form the 2nd select box's value isn't
being posted. Any help or insight would be appreciated.

The code is as follows:

//First select box
<select id="main_category_select"
onchange="Javascript:populate_sub_types()" name="data[User][type]"
style="width:180px;">
some options ....
</select>

//2nd select box which is being populated based on first select box.
<div id="sub_type_select" style="float:left; padding-bottom:5px;">
     <select  name="data[User][sub_type]" style="width:180px;">
      <option value="0" >Select a Sub type</option>
     </select>
</div>

Thanks a lot.


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