How to get the value of html drop-down menu in php background, please help
Please select:
Please select
{foreach $pe.roles as $value}
{$value.role_name}
{/foreach}
——Solution——————–
In your Set the name attribute in the select tag and obtain it through the name attribute value in the PHP background
For example:
Test
PHP code:
if(isset($_POST[“select1”]))
{
echo $_POST[“select1”];
}
——Solution——————–
echo @ $_POST[“selectRole1”];
You can get it