PHP怎样才能循环出传过来的数据;代码如下解决方案

WBOY
Release: 2016-06-13 10:19:34
Original
918 people have browsed it

PHP怎样才能循环出传过来的数据;代码如下


网站一









while ($row=mysql_fetch_array($result)){
$id=$row[id];
echo "";
echo "\n";
echo "";
}
?>




标题
".$row[Recname]."





接收页面
$data=unserialize($_POST["items"]);
?>



------解决方案--------------------
name=items[] 以数组形式传递。
------解决方案--------------------
echo " ".$row['Recname']."\n";
//HTML 部分,不需要用JS拼接

// php接收部分
print_r($_POST);
你就知道怎么干了。 name = item 会被合并为数组
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