I have this form:
<script src="./bootstrap-select/js/bootstrap-select.js"></script>
<form action="rec.php" name="submit" method="post">
<select name="all[]" class="form-control">
<?php
for($i = 0; $i < 10; $i++) {
?>
<option value="details<?=$i?>"><?=$i?></option>
<?php } ?>
</select>
<?php
for($i = 0; $i < 10; $i++) {
?>
<input type = "hidden" name="infos[]" value="<?=$i?>">
<?php } ?>
<input type="submit" vale="submit" name="submitit">
</form>
rec.php:
<?php
print_r($_REQUEST);
?>
When I submit the form, I get only Arrays of infos[]
and nothing about all[]
. When I remove bootstrap-select
and resubmit the form, I get all the results.
How to fix bootstrap-select in order to solve my problem?
I am using Bootstrap-select v1.10.0.