<?php
include("conexion.php");
if(isset($ok))
{
if($usuario=="" || $contrasena=="")
{
$mensajes=" datos en blanco";
}
}
?>
<html>
<body>
<form name="contrasena1.php" method="post" action="">
usuario: <input type="text" name="usuario">
<br><br>
contrasena: <input type="password" name="contrasena">
<br> <br>
<input type="submit" name="ok" value="iniciar sesion">
</form>
<?php
echo "$mensajes";
?>
</body>
</html>
include("conexion.php");
if(isset($ok))
{
if($usuario=="" || $contrasena=="")
{
$mensajes=" datos en blanco";
}
}
?>
<html>
<body>
<form name="contrasena1.php" method="post" action="">
usuario: <input type="text" name="usuario">
<br><br>
contrasena: <input type="password" name="contrasena">
<br> <br>
<input type="submit" name="ok" value="iniciar sesion">
</form>
<?php
echo "$mensajes";
?>
</body>
</html>
No hay comentarios:
Publicar un comentario