I need to create a form that pulls the sql bank options. So far so good, I've done a while inside a query in php;
echo '<SELECT NAME = "setor">';
while ( $temp = $setores->fetch_assoc() ) {
echo '<OPTION>'.$temp['nome'];
}
echo '</SELECT>';
But I need a second select only to present the information according to the option selected in the first select.
So for example, if in this select the user select '' movies '', the next select should display the movies in the database, if he selects '' series '', he returns the recorded series, and so on.
What's the simplest way I could do this?