good day, I currently use the input type radio with the post method to get information:
<td class="borrar">
<form method="post" action="location.reload()" name="eliminado">
<input type="radio" name="eliminado" onclick="document.forms.prueba.submit()" value="<?php echo $data['cedula']?>"> </td>
and I get it in php like this:
if(isset($_POST['eliminado']))
{ $del = $_POST['eliminado'];
} else {$del = '';
}
if($del != "" )
{$deleting = "Update resultados set borrado='".$del."' WHERE cedula = '".$del."';";
$deleting2=mysqli_query($con,$deleting) or die ("Location: ../error.php");
} else {};
However I would like not to use the "radio" but the image of a trash can, however when I make this change it does not complete the action to erase.
<td class="borrar">
<form method="post" action="location.reload()" name="eliminado">
<input type="image" src="../imagen/papelera.png" name="eliminado" onclick="document.forms.prueba.submit()" value="<?php echo $data['cedula']?>"> </td>