简单的表格数据传递的有关问题

WBOY
Release: 2016-06-13 11:48:34
Original
898 people have browsed it

求一个简单的表格数据传递的问题
是这样的,前台有一个table,可以动态添加行,比如原先有4个td,如下:






点击增加记录按钮,会在下面增加一行,如下:





然后再点击再增加,求教这种值在后台如何获取啊?PlugName1、testName1等这种动态增加的值。谢谢。
------解决方案--------------------
命名
name="PlugName[]"

读取
echo $_POST['PlugName'][$i];
------解决方案--------------------

for($i = 0; $i     echo $_POST['PlugName'][$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!