Home > Backend Development > PHP Tutorial > 请问一个php的表单post数组的有关问题,php页面接收不到数组的值

请问一个php的表单post数组的有关问题,php页面接收不到数组的值

WBOY
Release: 2016-06-13 11:57:54
Original
1204 people have browsed it

请教一个php的表单post数组的问题,php页面接收不到数组的值
ecshop 二次开发
请教一个php的表单post数组的问题flow.dwt模板页面




flow.php接收页
$lis_address=$_POST['addinputarr'];
$result = count($lis_address);
echo "<script>alert('".$lis_address."');</script>";
echo "<script>alert('".$result."');</script>";
foreach($lis_address AS $key=>$v)
{
echo "<script>alert('".$v."');</script>";
}

输出结果:输出结果是 1,Array, foreach没有输出

------解决方案--------------------
var_dump($lis_address);看看什么结果
------解决方案--------------------
echo $_POST['addinputarr'];
看看里边是什么东西 。是不是你想要的传递3个值的数组

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