Give the select form element a name.
After submitting the form, use $_POST or $_GET to submit
$_POST['sel'] or $_GET['sel'] to get the value of the selected select
Copy the code The code is as follows:
if ( $_POST )
{
echo $_POST['select'];
}
?>