hello,
i am trying to extend one of this sites scripts, [url]http://javascript.internet.com/forms/country.html#source,
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=’asia’>Asia</option>
<option value=’africa’>Africa</option>
<option value=’australia’>Australia</option>
<option value=’europe’>Europe</option>
<option value=’middleeast’>Middle East</option>
<option value=’lamerica’>Latin America</option>
<option value=’namerica’>North America</option>
<option value=’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