Ver Mensaje Individual
  #12 (permalink)  
Antiguo 30/09/2003, 10:49
ivanguillen
 
Fecha de Ingreso: agosto-2003
Ubicación: España
Mensajes: 202
Antigüedad: 20 años, 8 meses
Puntos: 0
registro.htm
Código PHP:
<html>

<
head>
<
meta http-equiv="Content-Language" content="es">
<
meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<
meta name="ProgId" content="FrontPage.Editor.Document">
<
meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<
title>registro en LisY Web </title>
<
style type="text/css">
<!--
input font-familyTahomaVerdanaArialfont-size18pxcolor#FFFFFF; background-color: #6699CC; border: #000099; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}
select font-familyTahomaVerdanaArialfont-size12pxcolor#FFFFFF; background-color: #6699CC; border: #000099; border-style: solid; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px}

-->
</
style>

</
head>

<
body bgcolor="#0066CC" text="#FF9933"><font face="Trebuchet MS">

<
p><h1 align="center">Registro de Usuarios</h1>
<
form method="POST" action="registro.php">
  <
table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="88%" id="AutoNumber1" height="223">
    <
tr>
      <
td width="63%" bgcolor="#000080" height="26">Descripción</td>
      <
td width="37%" bgcolor="#000080" height="26">Datos:</td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="78">Aquí debe de ingresar su 
      nombre de Usuario
este será utilizado para ingresar en nuestros servicios 
      extras
. </td>
      <
td width="37%" bgcolor="#008080" height="78">
      <
p align="center"><input type="text" name="nick" size="20"></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Su emailDebe ingresar aquí 
      su email
en caso de que perdiera su contraseña nosotros se la 
      reenviaremos por email
.</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><input type="text" name="mail" size="20"></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Su ContraseñaDebe ingresar 
      aquí su contraseña
para ingresar en nuestros servicios extras es 
      necesaria
Lógico no?</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><input type="text" name="pass" size="20"></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#000080" height="1">DATOS PERSONALES:</td>
      <
td width="37%" bgcolor="#000080" height="1">DATOS:</td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Tu nombrees necesario</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><input type="text" name="nombre" size="20"></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Tu pagina websi nos dice 
      la su pagina web
puede que la publiquemosdepende de su calidad</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><font face="Trebuchet MS">

      <
input type="text" name="url" size="20"></font></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Pregunta secretasi olvida 
      su contraseña se enviaremos la misma a su email en caso de responder 
      correctamente a esta pregunta
</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><font face="Trebuchet MS">

      <
input type="text" name="pregunta_psw" size="20"></font></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">esta es la respuesta de la 
      pregunta anterior introducid algo de lo que os acordéis fácilmente por 
      ejemplo vuestra peli favorita
</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
p align="center"><font face="Trebuchet MS">

      <
input type="text" name="respuesta_psw" size="20"></font></td>
    </
tr>
    <
tr>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="25">Tu sexocual es tu sexo 
      masculino o femenino
?</td>
      <
td width="37%" bgcolor="#008080" height="25">Masculino<input type="radio" value="Hombre" name="sexo">&nbsp;&nbsp
      
Femenino<input type="radio" name="sexo" value="Mujer"></td>
    </
tr>
    <
tr>
      <
td width="63%" bgcolor="#008080" height="26">Fecha de nacimientopon 
      aqui tu fecha de nacimiento
no valoramos tu edad es igual si tienes 11 
      años que 100. DD
.MMMMMM.AAAA</td>
      <
td width="37%" bgcolor="#008080" height="26">
      <
select size="1" name="fecha_dia">
      <
option>1</option>
      <
option>2</option>
      <
option>3</option>
      <
option>4</option>
      <
option>5</option>
      <
option>6</option>
      <
option>7</option>
      <
option>8</option>
      <
option>9</option>
      <
option>10</option>
      <
option>11</option>
      <
option>12</option>
      <
option>13</option>
      <
option>14</option>
      <
option>15</option>
      <
option>16</option>
      <
option>17</option>
      <
option>18</option>
      <
option>19</option>
      <
option>20</option>
      <
option>21</option>
      <
option>22</option>
      <
option>23</option>
      <
option>24</option>
      <
option>25</option>
      <
option>26</option>
      <
option>27</option>
      <
option>28</option>
      <
option>29</option>
      <
option>30</option>
      <
option>31</option>
      </
select><select size="1" name="fecha_mes">
      <
option value="Enero" >Enero</option>

      <
option value="Febrero">Febrero</option>
<
option value="Marzo">Marzo</option>
<
option value="Abril">Abril</option>
<
option value="Mayo">Mayo</option>
<
option value="Junio">Junio</option>
<
option value="Julio">Julio</option>
<
option value="Agosto">Agosto</option>
<
option value="Septiembre">Septiembre</option>
<
option value="Octubre">Octubre</option>
<
option value="Noviembre">Noviembre</option>
<
option value="Noviembre">Diciembre</option>
</
select></select><input type="text" name="fecha_ano" size="9"></td>
    </
tr>
    </
table>
  <
p align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <
input type="submit" value="Enviar" name="sumbit"><input type="reset" value="Restablecer" name="B2"></p>
</
form>
</
p>

</
font></body>

</
html
seguridad.php
Código PHP:
<?
//Inicio la sesión
session_start();

//COMPRUEBA QUE EL USUARIO ESTA AUTENTIFICADO
if ($_SESSION["autentificado"] != "SI") {
    
//si no existe, envio a la página de autentificacion
    
header("Location: index.php");
    
//ademas salgo de este script
    
exit();
}else{ 
include (
"aplicacion.php");

 }

 


 
?>
aplicacion.php
Código PHP:
<?include ("seguridad.php");?>
<html>
<head>
    <title>Aplicación segura</title>
</head>

<body>
<h1>Si estás aquí es que te has autentificado</h1>
<br>
----
<br>
Aplicación segura
<br>
----
<br>
<br>
<a href="salir.php">Salir</a>
</body>
</html>
salir.php
Código PHP:
<?
session_start
();
session_destroy();
?>
<html>
<head>
    <title>Has salido!!</title>
</head>

<body>

Gracias por tu acceso
<br>
<br>
<a href="index.php">Formulario de autentificación</a>

</body>
</html>
BUENO AKI FALTA UN ARCHIVO CONEXION.PHP ESE DEPENDE DE TI, COMO DIRIA NUEVO ESTO SE PUEDE MEJORAR MUCHO PERO NO PUEDO DAR LA VERSION COMPLETA espero aber quedado bien con ustedes, nuevo, no te molestes con migo, no soy ningun chulo