Dynamic drop down select lists

wxdqz

New Member
hello,
i am trying to extend one of this sites scripts, <!-- m --><a class="postlink" href="http://javascript.internet.com/forms/country.html#source">http://javascript.internet.com/forms/co ... tml#source</a><!-- m -->, which would allow me to basically make my forms a bit more neater.

anyhow, the way i am extending this is by "generating" all my data from the database which stores all the demographic data, such as the country, region etc... and i am pulling all this using a python script.

now what i can't for the life of me figure out, is how to pass the selected items i.e the value, once the user has made their selection to my action="process_this_form" method.

the java example, only lists the region value, but i am more intrested in recording country that the user is from once the form is submitted?


#####form########
<form name="globe">
<select name="region" onChange="populateCountry(document.globe,document.globe.region.options[document.globe.region.selectedIndex].value)">
<option selected value=''>Select Region</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/asia'>Asia</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/africa'>Africa</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/australia'>Australia</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/europe'>Europe</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/middleeast'>Middle East</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/lamerica'>Latin America</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/namerica'>North America</option>
<option value='http://www.webdeveloper.com/forum/archive/index.php/samerica'>South America</option>
</select>
<select name="country" onChange="populateUSstate(document.globe,document.globe.country.options[document.globe.country.selectedIndex].text)">
<option value=''><--------------------</option>
</select>
</form>

####endform####

many thanks
 
Back
Top