Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/05/2011, 13:48
Avatar de saraivaruas
saraivaruas
 
Fecha de Ingreso: octubre-2010
Ubicación: Chile
Mensajes: 133
Antigüedad: 13 años, 6 meses
Puntos: 10
Respuesta: Aporte sistema de usuario registrados con vista online y sistema de mensaj

Bueno ahora vamos con la 2ª parte el formulario.
fijese que agregare en el mismo formulario un campo de recupracion de contraseña para usuario olvidadizos.
Acuerdense que dije que seria un sistema simple por lo mismo no lo tengo con md5 los campos de contraseñas pero cada un podrá adptarlo de acuerdo a su necesidad.

form.php

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  4. <title>Formulario de registro</title>
  5. </head>
  6.  
  7. <table width="348" height="372" border="1" align="center" cellpadding="1" bordercolor="#00923F">
  8.  
  9.   <tr>
  10.  
  11.     <td width="323" bgcolor="#498551"><span class="Estilo6 Estilo1">Registrese aqui ! </span></td>
  12.   </tr>
  13.  
  14.   <tr>
  15.  
  16.     <td><form name="registrar" action="registro.php" method="post" onsubmit="return validar()" >
  17.         <dt>
  18.           <div align="right">
  19.               <label>Nick:</label>
  20.               <input type='text' name='nick' >
  21.               </div>
  22.         <dt>
  23.           <div align="right">
  24.               <label>E-mail:</label>
  25.               <input type='text' name='mail' >
  26.               </div>
  27.         <dt>
  28.           <div align="right">
  29.               <label>Contraseña:</label>
  30.               <input type="password" name='pass' >
  31.               </div>
  32.         <dt>
  33.           <div align="right">
  34.               <label>Confirmar Contraseña: </label>              
  35.                 <input type="password" name='conf_pass' >
  36.               </div>
  37.         <dt>
  38.            <br />
  39.                   <input type="submit" name="registro" style="width:100px;" tabindex="6" value="Registrar" >
  40.                   <input type="reset" name="Limpiar" style="width:100px;" tabindex="6" value="Limpiar" >
  41.                   </form>  </tr>
  42.  
  43.   <tr>  </tr>
  44.  
  45.   <tr>
  46.  
  47.     <td bgcolor="#498551"><span class="Estilo6 Estilo1">Ingrese aqui ! </span><span class="Estilo12 Estilo1">si se registro reci&eacute;n tomar&aacute; algunos segundos en que se actualize la informaci&oacute;n...</span></td>
  48.   </tr>
  49.  
  50.   <tr>
  51.  
  52.     <td><form name="login_user" action="login.php" method="post" >
  53.         <dt>
  54.               <div align="right">
  55.                 <label>Nick:</label>
  56.                 <input type='text' name='nick' >
  57.           </div>
  58.         <dt>
  59.         <div align="right">
  60.             <label>Contraseña:</label>
  61.             <input type="password" name='pass' >
  62.             </div>
  63.          
  64.             <br />
  65.             <input type="submit" name="login" style="width:100px;" tabindex="6" value="Entrar" />
  66.             <input type="reset" name="Limpiar" style="width:100px;" tabindex="6" value="Limpiar" >
  67.             </form>         </tr>
  68. <tr>
  69. <td bgcolor="#498551"> <div align="center">Olvidaste tu contraseña? Igrese tu mail y recuperala
  70.  
  71. <form action="rec_pass.php" method="post" >
  72.         <input type="submit" value="Enviar" name="go">
  73.         <input type="text" name="mail">
  74.     </form></div>
  75. *</td>
  76.    </tr>
  77. </body>
  78. </html>