Here is the code that is best explained.
<form class="got" method="GET" action="real_time.qm.php">
<select name="papel">
<?php
//Recebo as variaveis da outra pagina
$loc = $_GET['loc'];
$ori = $_GET['ori'];
include ("Conectcma.php");
$pl = "SELECT Papel FROM reg_qm_papel WHERE Local = '$loc' AND origem = '$ori'";
$plgo = mysqli_query($conexao, $pl);
while($sc_l = mysqli_fetch_array($plgo)){
echo '<option>'.$sc_l['Papel'].'</option>';
}
?>
</select>
<br>
<br>
<br>
<!-- Ao clicar no botão, deveria retornar as 3 variaveis($_GET['loc'],$_GET['ori'] e papel) porém, só retorna a ultima -->
<button class="css_btn_class" type="submit"> Acessar Papel - QM
</button>
</form>