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 code The code is as follows:
if( $_POST )
{
echo $_POST['select'];
}
?>
The value of name needs to be set. Otherwise it cannot be delivered.
http://www.bkjia.com/PHPjc/321827.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/321827.htmlTechArticleGive the select form a name. After submitting the form, use $_POST or $_GET to submit $_POST['sel'] or $_GET['sel'] to obtain the value of the selected select. Copy the code as follows: if...