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

WBOY
Release: 2016-06-13 12:56:16
Original
777 people have browsed it

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


    

        

           请选择: 
        

        

            
            

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


PHP代码:

if(isset($_POST["select1"]))
{
       echo $_POST["select1"];
}
------解决方案--------------------
echo @$_POST["selectRole1"];
就可以取得了
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template