Here is my code:
<div class="input-group" id="sector">
<span class="input-group-addon">Sector</span>
<select class="form-control" multiple>
<? foreach ($sectors as $row): ?>
<option value="<?= $row['sector']; ?>">
<?= $row['sector']; ?></option>
<? endforeach; ?>
</select>
</div>
I want to send the multiple selected value to controller.I have tried but only last selected value is posted, not all. Can you please guide me??