I need to create a dropdown menu which lists options from data in an SQL table, that much I can do.
But I want the dropdown options to route through to another bit of PHP, passing a variable depending on which option was chosen, as soon as the dropdown option is clicked on.
How do I do this please?
Do I somehow embed the URL in the select?
Code: Select all
echo "<option value='$loc[$islands2]'>$loc[$islands2]";Thanks for your time!