Good evening. I do a query, I load the data to a table and in each row I have a button that every record will have a different value. My question is how to get, in php, the value of the selected button using $ _REQUEST. The value I can echo is always the value of the first button. How do you do this with $ _REQUEST? I also accept other suggestions!
This is my button
<button type="button" name="ver_ee" data-toggle="modal" data-target="#myModal3" style="background-color: Transparent; border: none;" value=' . $registos[0] . '><i class="fa fa-male"></i></button>
This is the code to echo the value of the
<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h2 class="modal-title" id="myModalLabel">Encarregado de educação</h2>
</div>
<div class="modal-body">
<?php
$a = $_REQUEST["ver_ee"];
echo $a;
?>
</div>
<div class="modal-footer">
<!--<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>-->
<input type='button' data-dismiss="modal" name='cancelar' class="btn" value='Fechar' />
</div>
</div>
</div>
</div>