How to transfer category id ?
id
<div class="col-md-6"> <select> @foreach( $dataCategory as $Category) <option value=' ??? '>{{$Category['category']}}</option> @endforeach() </select> </div>
<div class="col-md-6"> <select> @foreach( $dataCategory as $Category) <option value='{{ $Category['id']}} '>{{$Category['category']}}</option> @endforeach() </select> </div>
<div class="col-md-6"> <select name="category"> <!-- name=category --> @foreach( $dataCategory as $Category) <option value="<your-value-what-you-want-see-in-category>">{{$Category['category']}}</option> @endforeach() </select> </div> check $_GET['category'] or $_POST['category'] => <your-value-what-you-want-see-in-category>
Source: https://ru.stackoverflow.com/questions/794200/More articles:Do windows 10 have protection from Specter?Flex Products CardMemory Access ErrorPHP / JS function / validation in the variable itselfFunction 0x06 Modbus RTU C #How to save data in linked tablesScroll up when clicking on the slider buttonHow to change an icon when clicking on a blockChecking the application version through a text file on the hostingPOST request from client to Nodejs serverAll Articles