如何在一个Html页面中将多个表单发布到PHP页面 并解析PHP页面中的所有表单元素 在单个按钮上单击Html发布页面 任何想法都要提前感谢
<form id="form1" name="form1"action="abc.php" method="post" name="hoursregistrationform" class="form-horizontal">
<div class="smallBox">
<div class="smallBox_day">
<div class="control-group">
<label class="control-label" for="monday">Monday:</label>
<div class="controls">
<input type="text" id="monday" name="monday" placeholder="hours">
<select>
<option value="" selected>code</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<a id="cloneButton" href="#"><img src="images/button_plus_pink.png" alt="+"></a>
</div>
</div>
</div>
<a id="cloneButton" href="#"><img src="images/button_plus_pink.png" alt="+"></a>
</div>
<input name="submit" type="button" value="submit">
</form>
<form id="form2" name="form2"action="abc.php" method="post" name="hoursregistrationform" class="form-horizontal">
<div class="smallBox">
<div class="smallBox_day">
<div class="control-group">
...............................
<a id="cloneButton" href="#"><img src="images/button_plus_pink.png" alt="+"></a>
</div>
</div>
</div>
<a id="cloneButton" href="#"><img src="images/button_plus_pink.png" alt="+"></a>
</div>
<input name="submit" type="button" value="submit">
</form>.................................................
.................
答案 0 :(得分:2)
您可以使用一个全局表单,而不是许多小表单
答案 1 :(得分:0)
您可以在Jquery动态表单的帮助下使用一个全局表单来满足您的需求 Jquery动态表格:clicking here