validar un formulario en html

Ecuatoriano
17 de Octubre del 2008
no se como hacerlo

yesenia
17 de Octubre del 2008
quisiera saber como me integro a chatiar con personas de las siguientes edades12 13 14 y 15 aƱos

micky
17 de Octubre del 2008
quiero conocer a alguien

k
17 de Octubre del 2008
Echale un mirada a esta pƔgina :

<html>
<head>

<title>PƔgina de Prueba</title>

<script language="javascript">

function validar(formulario)
{
a=0;

if(formulario.nombre.value =="")
{
alert("Falta ingresar el nombre !!");
formulario.nombre.focus();
a=1;
}
if(formulario.edad.value =="")
{
alert("Falta ingresar el Edad !!");
if(a !=1)
{
formulario.edad.focus();
}
a=1;
}
if(a==0)
{
formulario.submit();
}
}

</script>

</head>

<body onload="formu.nombre.focus()">
<center>

<h1> Ingrese sus Datos </h1>

<form action="pagina.html" method="post" name="formu">

nombre <br>
<input type="text" name="nombre" value="" maxlength="25" size="30"><br><br>
edad <br>
<input type="text" name="edad" value="" maxlength="2" size="5"><br><br><br>
<input type="button" value="Enviar" onclick="validar(this.form)"> <input type="reset" value="Cancelar">

</form>

</center>
</body>
</html>

khriztian
17 de Octubre del 2008
Echale un mirada a esta pƔgina :

<html>
<head>

<title>PƔgina de Prueba</title>

<script language="javascript">

function validar(formulario)
{
a=0;

if(formulario.nombre.value =="")
{
alert("Falta ingresar el nombre !!");
formulario.nombre.focus();
a=1;
}
if(formulario.edad.value =="")
{
alert("Falta ingresar el Edad !!");
if(a !=1)
{
formulario.edad.focus();
}
a=1;
}
if(a==0)
{
formulario.submit();
}
}

</script>

</head>

<body onload="formu.nombre.focus()">
<center>

<h1> Ingrese sus Datos </h1>

<form action="pagina.html" method="post" name="formu">

nombre <br>
<input type="text" name="nombre" value="" maxlength="25" size="30"><br><br>
edad <br>
<input type="text" name="edad" value="" maxlength="2" size="5"><br><br><br>
<input type="button" value="Enviar" onclick="validar(this.form)"> <input type="reset" value="Cancelar">

</form>

</center>
</body>
</html>

Eliezer
17 de Octubre del 2008
Bueno mi pregunta es la siguiente Āæ yo tengo un formulario en web en mi pagina.. y hay gente q se mete y pone codigo HTML osea cambia el color de las letras las pones mas grande.. yo quisiera que alguien me ayudara a bloquear.. eso mi email es [email protected] por favor contatence conmigo escribanme un correo donde salga algun video o una explicacion breve se los agradeceria att: Era studio