php中form表单的值用submit提交后,如何在下个页面取出来

WBOY
Release: 2016-06-13 11:08:19
Original
806 people have browsed it

php中form表单的值用submit提交后,怎么在下个页面取出来
  我的php文件里有复选框checkbox的值,选择了用form表单的submit来提交值,想在数据提交后,将其和下个页面的数据一起用socket发出去。但是submit的数据在用socket发的时候值取不出来。目前session和cookie都不可用。我是新手,希望有专家可以帮忙解决下哈。
------解决方案--------------------
print_r($_POST);
------解决方案--------------------
不知道是否我理解错了,楼主的左面选择的和右面显示的数据应该在一个表吧,或者说右面的数据表中肯定有左面的选择设备,再者左右也应该有对应关系,直接在右面的form提交个
------解决方案--------------------
没太看明白楼主的意思,如果仅是checkbox取值的话
假设checkbox都是这样
123
后几个省略掉

提交到另一个页面后,在获取值的方法
$zixun1 = $_POST['zixun1'];
for($i=0;$iecho $zixun1[$i]."
";
?>
?>

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!