Home > Backend Development > PHP Tutorial > 怎么传递SELECT 下拉列表的值

怎么传递SELECT 下拉列表的值

WBOY
Release: 2016-06-13 13:44:33
Original
1237 people have browsed it

如何传递SELECT 下拉列表的值?
根据网上那个教程没法获取值












abcd.php


session_start();
$theselect=$_POST['select'];
$thevalue=$_POST['querysle2'];

if(empty($thevalue))
{
echo "<script>alert('错误:查询条件不能为空');location.href='queryrecord.php';</script>";

}

echo $theselect;
echo $thevalue;

结果是 客户姓名12323213

------解决方案--------------------


这样就可以了
------解决方案--------------------


是value,而不是values
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