Hello, I’ve just started with PHP and trying to understand the basics. Below i have made a dropdown list, and when i select a value, i want it to be printed out in the code below. What else do i need to do for this to work? Thanks!
[php]Sort by class:
Alfa
Beta
Delta
Gamma
<?php if (isset($_POST["select_class"])) { $option = $_POST["select_class"]; echo "
You selected: " . $_POST["select_class"]; } ?>[/php]