フォームで角かっこを数回使用しましたが、Twitter BootStrap を使用して現在取り組んでいるもの (違いはありますか?) がデータを送信していないため (!) - 12 年間のコーディングと今では私は困惑しています。 m このばかげた q を尋ねます。
私が通常できることは、手動で(またはループを介して) echo $_POST['itemnum'][0] / $_POST['itemnum'][1] / etc - しかし、空に戻ってきます..
<form method="POST" action="'.phpself.'" class="form-horizontal" role="form">
...(table with 3 identical rows)..
<tr>
<td >
<input type="text" name="itemnum[]" class="form-control" id="inputEmail3" placeholder="Item #"></td>
<td ><input type="text" name="itemdesc[]" class="form-control" id="inputEmail3" placeholder="Description"></td>
<td ><input type="number" name="itemqty[]" class="form-control" style="max-width:80px;display:inline" placeholder="Qty"></td>
</tr>
....
</form>
var_dump:
array(5) { ["itemnum"]=> string(0) "" ["itemdesc"]=> string(0) "" ["itemqty"]=> string(0) "" ["message"]=> string(24) " d hef s s dvs sd vsd vs" ["submitRFQ"]=> string(0) "" }