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

怎么传递SELECT 下拉列表的值

WBOY
WBOYOriginal
2016-06-13 13:44:331180browse

如何传递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
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