Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/09/2014, 13:39
chelo123
 
Fecha de Ingreso: junio-2014
Ubicación: Argentina
Mensajes: 2
Antigüedad: 9 años, 10 meses
Puntos: 0
Como insertar ventana emergente de confirmacion de eliminar registro

Hola gente tengo un poco de conocimientos en php y estoy aprendiendo. Tengo un listado de afiliados en php pero quiero hacer que cuando haga clic en borrar aparezca una ventana de confirmacion. Esta el la tabla del listado con el link borrar.

<?php
include("conexion.php");

$registros=mysql_query("SELECT id_afiliado,apellido,nombre,dni,domicilio,localida d,provincia,telefono_fijo,celular,fecha_nac,fecha_ ingreso
FROM afiliados ORDER BY id_afiliado ASC",$conexion) or die ("Problemas en el select:".mysql_error());

echo '<table class="tablalistado" id="tabla_lista_afiliados">';
echo '<thead>';
echo '<tr>
<th>AFILIADO</th>
<th>APELLIDO</th>
<th>NOMBRE</th>
<th>DNI</th>
<th>DOMICILIO</th>
<th>LOCALIDAD</th>
<th>PROVINCIA</th>
<th>TELEFONO</th>
<th>CELULAR</th>
<th>FECHA NACIMIENTO</th>
<th>FECHA INGRESO</th>
<th colspan="3">OPCIONES</th>
</tr>';
echo '</thead>';
echo '<tbody>';

while($reg=mysql_fetch_array($registros))
{
echo "<tr>";
echo "<td><center>$reg[id_afiliado]</center></td>";
echo "<td><center>$reg[apellido]</center></td>";
echo "<td><center>$reg[nombre]</center></td>";
echo "<td><center>$reg[dni]</center></td>";
echo "<td><center>$reg[domicilio]</center></td>";
echo "<td><center>$reg[localidad]</center></td>";
echo "<td><center>$reg[provincia]</center></td>";
echo "<td><center>$reg[telefono_fijo]</center></td>";
echo "<td><center>$reg[celular]</center></td>";
echo "<td><center>$reg[fecha_nac]</center></td>";
echo "<td><center>$reg[fecha_ingreso]</center></td>";
echo '<td><a href="http://localhost/mutual/afiliados/alta_afiliado.php"><input type="button" value="Agregar"></a></td>';
echo '<td><a href="http://localhost/mutual/afiliados/baja_afiliado.php?dni='.$reg['dni'].'"><input type="button" value="Borrar"></a></td>';
echo '<td><a href="http://localhost/mutual/afiliados/modificar_afiliado1.php?dni='.$reg['dni'].'"><input type="button" value="Modificar"></a></td>';
echo '</tr>';
}
echo "</tbody>";
echo "</table>";
?>