views:

132

answers:

0

i am using cascading dropdownlist for showing states of a country... I get the country dropdown value but not the state dropdown value.... I am populating state values via ajax...

 echo $country = $this->input->post('country');
 echo $state = $this->input->post('state');

When inspected through firebug it shows all the option values of my state dropdown then why doesn't it get posted?

<select onchange="getCity(1,this.value)" name="state">
<option value="0">Select State</option>
<option value="1">Andhra Pradesh</option>
<option value="2">Arunachal Pradesh</option>
<option value="3">Assam</option>
<option value="4">Bihar</option>
<option value="5">Chandigarh</option>
<option value="6">Chhattisgarh</option>
<option value="7">Dadra and Nagar Haveli</option>
<option value="8">Daman and Diu</option>
<option value="9">Delhi</option>
<option value="10">Goa</option>
<option value="11">Gujarat</option>
<option value="12">Haryana</option>
<option value="13">Himachal Pradesh</option>
<option value="14">Jammu and Kashmir</option>
<option value="15">Jharkhand</option>
<option value="16">Karnataka</option>
<option value="17">Kerala</option>
<option value="18">Lakshadweep</option>
<option value="19">Madhya Pradesh</option>
<option value="20">Maharashtra</option>
<option value="21">Manipur</option>
<option value="22">Meghalaya</option>
<option value="23">Mizoram</option>
<option value="24">Nagaland</option>
<option value="25">Orissa</option>
<option value="26">Puducherry</option>
<option value="27">Punjab</option>
<option value="28">Rajasthan</option>
<option value="29">Sikkim</option>
<option value="30">Tamil Nadu</option>
<option value="31">Tripura</option>
<option value="32">Uttar Pradesh</option>
<option value="33">Uttarakhand</option>
<option value="34">West Bengal</option>
</select>