Home  >  Article  >  Backend Development  >  php后台怎么获取html上拉菜单的值,请大侠们帮忙

php后台怎么获取html上拉菜单的值,请大侠们帮忙

WBOY
WBOYOriginal
2016-06-13 12:56:16746browse

php后台如何获取html下拉菜单的值,请大侠们帮忙


    

        

           请选择: 
        

        

            
            

    
html php action form select
------解决方案--------------------
在你的select标签中设置name属性,在PHP后台通过name属性值获取
例如:


PHP代码:

if(isset($_POST["select1"]))
{
       echo $_POST["select1"];
}
------解决方案--------------------
echo @$_POST["selectRole1"];
就可以取得了
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn