<form action="submit.php" method="POST">
<div class="row">
<div class="column">
<input type="text" class="datepicker" name="date[]"/>
</div>
<div class="column">
<select name="break[]" onchange="count_time('total',this);">
<option value=""> -Select City- </option>
<option>.15</option>
<option>.10</option>
<option>.05</option>
</select>
</div>
<div class="column">
<input type="text" name="total[]" class="total" readonly="readonly">
<input type="hidden" name="total[]" class="total">
</div>
</div>
<div class="row">
<div class="column">
<input type="text" class="datepicker" name="date[]"/>
</div>
<div class="column">
<select name="break[]" onchange="count_time('total',this);">
<option value=""> -Select City- </option>
<option>.15</option>
<option>.10</option>
<option>.05</option>
</select>
</div>
<div class="column">
<input type="text" name="total[]" class="total" readonly="readonly">
<input type="hidden" name="total[]" class="total">
</div>
</div>
<input type="submit" name="submit" value="submit">
</form>
这是我的第一篇文章。我的表单中有很多字段。当我提交表单时,我相应地得到了 datepicker 值,但我无法获得 2 个总字段值,但是当我在浏览器中看到时,我可以看到有 2 个相同的值在那些领域。