Ver Mensaje Individual
  #1 (permalink)  
Antiguo 30/09/2012, 17:11
facux_14
 
Fecha de Ingreso: septiembre-2012
Mensajes: 1
Antigüedad: 11 años, 7 meses
Puntos: 0
Cartel de confirmacion

Hola como estan?necesito ayuda en algo que estoy haciendo necesito algun cartel de advertencia o de confirmacion...algo asi como "Estas seguro de borrar?"SI/NO este es mi codigo :
Código PHP:
<html>
<
head>
<
title>Baja Docente</title>
</
head>
<
body>
<
form action="Baja_Docente_Conexion.php" method="post">
Ingrese el DNI del Docente a borrar:
<
input type="int" name="DNI">
<
br>
<
input type="submit" value="buscar">
</
form>
</
body>
</
html
y esta es la parte de la conexion:
Código PHP:
<html>
<head>
<title>Baja Docente conexion</title>
</head>
<body>
<?php
$conexion
=mysql_connect("localhost","root","") or
die(
"Problemas en la conexion");
mysql_select_db("sis_alu",$conexion) or
die(
"Problemas en la selección de la base de datos");
$registros=mysql_query("select DNI from docentes
where DNI='$_REQUEST[DNI]'"
,$conexion) or
die(
"Problemas en el select:".mysql_error());
if (
$reg=mysql_fetch_array($registros))
{
mysql_query("delete from docentes where DNI='$_REQUEST[DNI]'",$conexion) or
die(
"Problemas en el select:".mysql_error());
echo 
"Se efectuó el borrado de dicho Docente.";
}
else
{
echo 
"No existe tal Docente.";
}
mysql_close($conexion);
?>
<br>
<br>
<br>
<br>
<a href="http://127.0.0.1/index.php"><input type="button" value="Volver"></a><br>
<br>
</body>
</html>
Si alguien puede ayudarme le agradeceria =)