I want a to create a drop down menu which generates another drop down menu on the base of selected value Just for example if select United States from the 1st drop down then 2nd drop down contains the states of United states. I've done much of the job. I am prefering a javascript and using arrays
var country_arr = new Array("USA", "Singapore", "Pakistan")
var s_a = new Array();
s_a[0]="";
s_a[1]="CA|NJ|NY";
s_a[2]="paas|naas|taas";
s_a[3]="Islamabad|karachi|lahore";
But I also want the "name" of the country and state selected, for sending to mysql database. I guess i've to use double dimensional array for this. But unable to code this time and seriously need your help.