Hallo Fellow Web Enthusiasts, As some of you know, I am in the process of learning some PHP myself and one of the first few things I am building for myself is a Form. However, I have run into a little trouble and would be glad if some one could point me in the correct direction. Thanks in advance for any advice/help rendered. In this form that I am building, I have the following PHP code which is intended to interact with TWO Relational Data Tables (namely db_country, db_country_state):- $country_pulldown = '<select name="country" id="country" style="width:200" width="200" onChange="FillState(document.updateprofile.country, document.updateprofile.state, \'\')">'; $country_pulldown .= '<option></option>'; $country_pulldown .= '</select>'; $state_pulldown = '<select name="state" id="select" style="width: 200px;" size="1">'; $state_pulldown .= '<option></option>'; $state_pulldown .= '</select>'; Code (markup): As you can see, I have two different variables. One is $country_pulldown and one is $state_pulldown. The tricky thing here is that I want to achieve the following. For the $country_pulldown, (1) I want this variable to extract 250 country values from the MySQL table named "db_country". And (2) when the Web User selects a value from the dropdown selector (1 country out of 250 countries), the related State field will now automatically select ALL the States which belongs to that Particular Country. For example, if a user selects "USA" in the first country field, the state field should now load State data corresponding only to "USA". These are the Table structures For db_country, there are 3 columns namely - locationid (A 3 digit unique number representing the country for example "307" represents "Australia") - locationname (which is the country name, "Australia", "USA", "United Kingdom" for example - countrycode (which is the two letter alphabet representing the country, for example "au" for "Australia" For db_country_state, there are 2 columns namely - locationid (The 3 digit number in the db_country table, which is the relational reference data - whatever you call it representing the country in question) - statename (which is the various states belonging to a specific 3 digit number... For example, where the locationid is 307, all the states names of Australia are referenced to this number) Other Notes:- The data for the db_country table and for the db_country_state table are already correct and organized so that they are relational. I picked out these values online and loaded these data in CSV file format. There are a total of about 4731 States belonging respectively to the 250 countries. The numbers here are not important, just extra info... Hopefully some one can advise me how to achieve (1) and (2) by using the correct PHP code. Am I missing something from my javascript function "document.updateprofile.country" ? I have ZERO knowledge of javascript and very very basic knowledge of PHP and this is the code that I am modifying from an existing form that doesn't seem to work as it was intended to. Any advice/suggestions to point me to the correct direction or to modify my code is appreciated.... Sincerely yours, Joshua