On the home page of my site I need to have two combobox for the user to select options coming from the database (for example: select the state in the first combobox and when selecting the state in the second combobox are loaded the cities of this state. , OK.). I'm having trouble doing the following: After the user populates the two combobox (choose state and city), I need that in the same screen, below the combos, a text appears according to the options selected. This content will come from the bank and will be according to the id of the state and the id of the selected city.
My select in HTML is populated and with each state selected a JavaScript function calls a file called the Cities.php list that will populate the other combobox. Ok. How do I get the id of the state and the id of the city and make an inquiry using these two information to bring content on the same home screen?