Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/05/2005, 01:09
Avatar de DvD AdN
DvD AdN
 
Fecha de Ingreso: mayo-2005
Ubicación: Frente al monitor
Mensajes: 610
Antigüedad: 19 años
Puntos: 0
Un script en php.
Necesitas tener un admin.html o loquesea.html.
Código:
<html>
<head>
<title>Introdusca su clave</title>
</head>
<body>
<form action="script.php" method="post">
Clave:<input type=password name=pwd>
<br>
<input type=submit value=Enviar>
</form>
</body>
</html>
Y luego en script.php pones esto:
Código PHP:
<?
If ($pwd="Clave1") {
include (
"cliente1.html");
}else{
echo 
"Clave incorrecta";
};
if (
$pwd=="clave2") {
include (
"cliente2.html");
}else{
echo 
"Clave incorrecta";
};
if (
$pwd=="clave3") {
include (
"cliente3.html");
}else{
echo 
"Clave incorrecta";
};
?>
Es un ejemplo sencillo, se puede mejorar mucho

Espero ayudar

Salu2
__________________
Keep f***ing learning
Ask for f***ing help.
Use f***ing spell check.
Think about all the f***ing possibilities.