为什么不使用命名约定,例如
- name =“ Form1 [input]”
- name =“ Form2 [input]”
- name =“ Form3 [input]”
然后执行常规序列化和$ .post,这将帮助您在处理器循环中保持相同的命名约定
编辑:
<?php foreach($_POST as $form) { // $form = array('input' => 'i am here') processForm($form); // names are still the same for all forms}?>


