有沒(méi)有辦法插入具有相同輸入名稱(chēng)的多個(gè)值?我的問(wèn)題是我收到多個(gè)值。<div class="giftcard box"> <select name="price" id="colorselector2" style="width:150px;"> <option value="">Select Gift Card Price</option> @foreach($productDetails->giftattributes as $price) <option value="{{$price->price}}">$ {{$price->price}}</option> @endforeach </select></div><div class="giftcertificate box"> <select name="price" id="colorselector" style="width:150px;"> <option value="">Select Gift Certificate Price</option> @foreach($productDetails->giftattributes as $price) <option value="{{$price->price}}">$ {{$price->price}}</option> @endforeach </select></div><div class="productasgift box"> <select name="price" id="colorselector1" style="width:150px;"> <option value="">Select Product As Gift Certificate</option> @foreach($allproduct as $allprice) <option value="{{$allprice->price}}">$ {{$allprice->price}}</option> @endforeach </select></div>
1 回答

RISEBY
TA貢獻(xiàn)1856條經(jīng)驗(yàn) 獲得超5個(gè)贊
嘗試[]
在名稱(chēng)的末尾添加,然后在請(qǐng)求中所有具有相同名稱(chēng)的選擇/輸入都應(yīng)該在一個(gè)數(shù)組中
- 1 回答
- 0 關(guān)注
- 134 瀏覽
添加回答
舉報(bào)
0/150
提交
取消