I have a listing in PHP / Mysql of which I open in a modal window the description of a particular product. The code is as follows:
Page list-products.php
while($jm = mysqli_fetch_object($sql)){
$listar = "<a href=\"ver-produtos.php?Key=".$jm->IdCodProdutos."\" data-toggle=\"modal\" data-target=\"#myModal\" class=\"btn btn-xs btn-primary\">Ver currículo</a></div>";
}
Modal
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
</div>
<!-- /.modal -->
Ver-products.php page
// teste
echo $_REQUEST['Key'];
The window opens correctly, however it is necessary to update the product listing page to get the other Key.