
14/10/2008, 18:54
|
| | Fecha de Ingreso: agosto-2008
Mensajes: 367
Antigüedad: 16 años, 7 meses Puntos: 5 | |
Respuesta: quiero utilizar este codigo para validar mail entiendo lo que tu me dices,
pero le explico algo, lo que no se es como situar los codigos
por ejemplo tengo este codigo.
<style type="text/css">
<!--
#content
{
position:absolute;
left:10%;
top:10%;
width:494px;
align:center;
}
#Layer1 {
position:absolute;
left:100px;
top:200px;
width:494px;
height:0px;
z-index:1;
align:center;
}
-->
</style>
</head>
<body >
<script languaje="javascript">
function validarpass(form)
{
if (form.pass.value == form.pass1.value)
{form.submit();}
else
{
alert("la repeticion de la contraseña no coincide.");
form.pass1.value = ""; form.pass1.focus(); return true;
}
}
</script>
<div id="content">
<form name="ingreso de usuarios" method="post" action="registro usuario.php">
<div id="Layer1">
<h2 align="center">   ;
Usuario:
<input type="text" name="usuario" />
</h2>
<p align="center"> </p>
<h2 align="center">   ;
Contraseña:
<input type="password" name="pass"><br></h2>
<p align="center"> </p>
<h2 align="center">
Repetir contraseña:
<input type="password" name="pass1" />
</h2>
<h2 align="center"><br>
&n bsp; &n bsp;
E.mail:
<input type="text" name="email">
<br>
</h2>
<p>
<p><p>
<p>   ; & nbsp; &nb sp;   ; & nbsp; &nb sp;   ;
<input type="button" value="enviar" onclick="validarpass(this.form)" >
&n bsp; &nbs p;   ;
<input name="reset" type="reset" value="borrar" />
</p>
</div>
<table width="" height="" align="center" border="0">
<tr>
<td><img src="../imagenes/registro usuario.gif" width="800" height="600" align="center"></td>
</form>
<tr><td><br>
</div>
</tr>
</table>
</body>
</html>
es un formulario de registro, y e podido compobar el password, pero no se como añadirle que tambien compuebe el e.mail, y si el es correcto lo mande a registro usuario.php o de lo contrario tire un echo""
muchas gracias |