Ver Mensaje Individual
  #2 (permalink)  
Antiguo 01/08/2003, 10:37
Avatar de DINASEN
DINASEN
 
Fecha de Ingreso: marzo-2003
Mensajes: 997
Antigüedad: 21 años, 1 mes
Puntos: 1
algo sinmple seria asi :

pass.php
Código PHP:

$usuario 
"admin";
$clave "admin"
protegida.php

Código PHP:
<html>
<
head>
<
title>Login</title>
</
head>

<
body>
include(
"pass.php");

if ((
$usuario == "$usuario") and ($clave == "$clave"))

{

 echo 
"


<html>
<head>
<title>Der Login</title>
</head>
<body>
ha pasado
<br>
</body>
</html>


"
;


}

else

{

echo 
"Falesta mal primo .";

}

?>

</body>
</html> 
Un Saludo