0
I got a little complicated in the title to explain my doubt, but I will try to be as clear as possible.
I have this field:
I need to get the values that were selected in the extension field, but when I get his result via POST he only brings a value and via GET too, but he brings it in the URL:
https://192.168.0.27/projetos/bdm/grupo_de_permicao.php?formfield1=teste&my_multi_select1=200&my_multi_select1=4864&my_multi_select1=2000
I was wondering if you can get all these values with the same variable my_multi_select1 and play within an array or some other way. 
I don’t think it’s much use, but just follow my code:
<div class="form-group">
                               <label class="form-label" for="formfield1">Ramais</label>
                                    <span class="desc">Adicione ou remova os ramais utilizando a caixa abaixo</span>
                                    <select name="my_multi_select1" class="multi-select form-control" multiple="" id="my_multi_select1" name="formfield2">
                                        <?php
                                $allramal = "";
                                $tst2 = selectRamals();
                                while ($linha = mysqli_fetch_array($tst2)) {
                                  ?>
                                    <option value="<?=$linha['extension']?>"><?=$linha['name']?>   (<?=$linha['extension']?>)</option>
                                <?php } ?>
                                    </select>      
                                </div>

Thanks!! I won’t be able to answer you now but tomorrow I will test and comment here!! Valeuzao
– Giovanni Bernini
That’s right. The
[]will create aarrayofmy_multi_select1. To access each one can use theforeach($_POST['my_multi_select1'] as $multi){ echo $multi; }– Inkeliz
Thanks!! Absolutely right
– Giovanni Bernini