Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/05/2011, 18:26
parapaginaspruebas
 
Fecha de Ingreso: mayo-2011
Mensajes: 5
Antigüedad: 13 años
Puntos: 0
Respuesta: Login y registro de cuentas

Lo revisare gracias; de todas formas aca vuelvo a poner mi codigo de manera mas ordenada por si alguien me ayuda a crear el codigo..


Formulario:
Código PHP:
<form action = "formulario.php" method= "POST">

<table border = "1px" bgcolor= "blue">
<tr><td> Usuario: </td><td> <input type = "text" name = "usuario"/> </td></tr>
<tr><td> Clave: </td><td> <input type = "text" name = "clave"/> </td></tr>
<tr><td> Nombre: </td><td> <input type = "text" name = "nombre"/> </td></tr>
<tr><td> Sexo:</td><td> <input name = "Sexo" type = "radio" value = "masculino" />Masculino <input name = "Sexo" type = "radio" value = "femenino" />Femenino</td></tr>
<tr><td> Fecha de nacimiento: </td><td> <select name = "dia">
<option>Dia</option>


<?php for ($i 1$i <= 31$i++){
echo 
"<option>$i</option>";
}
?>


</select>
<select name="mes">

<option>Mes</option>
<?php for ($i 1$i <= 12$i++){

echo 
"<option>$i</option>";
}
?>


</select>
<select name="year">

<option>Año</option>
<?php for ($i 1900$i <=2011$i++){
echo 
"<option>$i</option>";
}
?>


</select>
<tr><td> Email: </td><td> <input type = "text" name = "email"/> </td></tr>
<tr><td> Foto: </td><td> <input type = "file" name = "foto"/> </td></tr>
<tr><td><input type= "submit" value = "Registrar!" /> </td><td> <input type= "reset" value = "Reestablecer" /></td></tr>



</table>


</form>
Login
Código PHP:


<form action"perfil.php" method "POST" >
<
table align"left" >

<
tr><td width="500"><DIV alignleft> <a href="formulario.php"><img src="nocuenta.png" /></a></DIV> </td><td>

<
table >
<
tr><td><font color="white" SIZE"5"> <b>Usuario:</b></font> </td><td><input type "text"/> </td></tr>
<
tr> <td><font color="white" SIZE"5"> <b>Contraseña:</b></font></td> <td><input type "password"/> </td></tr>
<
tr><td><input type="submit" value "Ingresar!"/> </td> <td><input type "reset" value "Reestablecer"/></td></tr>

</
table>
</
td></tr>

</
table>
</
form