Ver Mensaje Individual
  #1 (permalink)  
Antiguo 16/12/2007, 21:35
kasparov
 
Fecha de Ingreso: diciembre-2007
Mensajes: 2
Antigüedad: 16 años, 5 meses
Puntos: 0
formulario no valida em firefox =/

basta yo retirar esta linea, para validar mío formulario, so ocorre em firefox, no saber mas o que hacer.
gracias a cualquier ayuda. =]
maldita linha =] :<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"s>

html--------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"s>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="login.css" type="text/css">
<script src="valid_form.js"></script>
</head>
<body bgcolor="#0000ff">
<div id="geral">
<div id="conteudo">
<form action="index.php" name="nform" method="post" onsubmit="return validform()">
<p id="txtconteudo2" style="float:left;">CEP</p><input type="text" name="cep5" size="5" maxlength="5"> -
<input type="text" name="cep3" size="3" maxlength="3"><br>
<input type="submit" value="Continuar >>" id="submit">
</form>
</div>
</div>
</body>
</html>

JS------
function validform() {
if(nform.cep5.value.length == 0 && nform.cep3.value.length == 0){
alert("Digite um CEP CABECAO !!!");
return false;
}
if (nform.cep5.value.length != 5 || nform.cep3.value.length !=3){
alert("DIGITA O CEP POR GENTILIZA !!!!!! !!! !");
return false;
}
return true;
}

viva el ninho torres =]