Home  >  Article  >  Backend Development  >  简单的表格数据传递的有关问题

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

WBOY
WBOYOriginal
2016-06-13 11:48:34902browse

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






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





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

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

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