<form action="eliminarmedico2.php" method="post"> <label>Cedula:</label> <input name="cedula" type="text"/> <input type="submit" onclick="confirmation()" value="Enviar"></input> </form>
<script type="text/javascript"> <!-- function confirmation() { var answer = confirm("¿Deseas Eliminar este medico?") if (answer){ alert("Bye bye!") window.location = "eliminarmedico2.php"; } else{ alert("Cancelado!") } } //--> </script>