Home > Backend Development > PHP Tutorial > tpphp一个表单提交多个需要循环的数据怎么办

tpphp一个表单提交多个需要循环的数据怎么办

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:27:02
Original
1272 people have browsed it

tpphp一个表单提交多个需要循环的数据怎么处理

就像图里面有三个需要提交的数据,一次性可能有多条或者一条,后台怎么来处理呢?
只有一个form

 数据都在一个form里面,还是说需要一条数据一个form呢?
------解决思路----------------------
<br /><br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />$.ajax({ <br />         url: "index.php?g=Home&m=Index&a=actChoice&json=1",<br />         data: $('#Form1').serialize(), <br />         type:'POST',<br />         success: function(result){<br />         jDialog.alert(result);<br />         }});<br />
Copy after login

服务器
$_POST['choice'];//这样接收
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