-1
<?php session_start();
include 'conexao.php';
?>
<form action="recebe.php" method="POST">
<select class="browser-default custom-select">
<option name="arrays"value="nenhum">Nenhum</option>
<option name="arrays"value="<?php ['id_cane']?>"><?php
sql = mysqli_query($conn, "SELECT * FROM CNAE ")
or die(mysqli_error($conn));
while($aux = mysqli_fetch_assoc($sql)) {
?><option ><?php
echo "".$aux["descricao"]."<br/>"; //outro atributo de toda pesquisa feito pelo $sql
} ?>
</option> </select>
<button type="submit" class="btn btn-primary">Enviar</button>
</form>
recebe o valor na pagina recebe.php
<?php
session_start();
include 'conexao.php';
$arrays = $_POST["arrays"];
echo "<script>
alert ($arrays)
</script>";
?>
Put an explanation of your problems and how your code works. If you don’t have a whim with your question it won’t be the others who will have you with your answer.
– Augusto Vasques