Question: PHP using ONLY PHP - how do I get the selected value from a drop down box? There is no submit button, the user should

PHP

using ONLY PHP - how do I get the selected value from a drop down box?

There is no submit button, the user should be able to make a selection in the drop down box and PHP would be able to echo that value

$drpdwn_val = $_POST['SortBy'];

echo "Selection: ".$drpdown_val."
";

?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!