0
I need to create a form that pulls the options from the sql database. So far so good, I did 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 to only display the information according to the selected option in the first select.
So for example, if in this select the user select '''movies', the next select should display the existing movies in the database, if it select ''series', it returns the registered series, and so on.
What’s the simplest way I could do it?
The project has Jquery or javascript only?
– Don't Panic