I have complicated the title a little to explain my doubt, but I will try to be as clear as possible.
I have this field:
Ineedtogetthevaluesthatwereselectedintheextensionsfield,butwhenIgettheresultviaPOSTitonlyreturnsavalueandviaGETalso,butitbringsittotheURL:
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
Iwantedtoknowifyoucangetallthesevalueswiththesamevariablemy_multi_select1
andplayinsideanarrayorsomeotherway.
Ithinkit'snotveryuseful,buthereismycodebelow:
<divclass="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>