Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/09/2006, 09:34
Avatar de decano
decano
 
Fecha de Ingreso: diciembre-2005
Ubicación: Montevideo, Uruguay
Mensajes: 146
Antigüedad: 19 años, 1 mes
Puntos: 0
limitar a que escriba mas de 60 caracteres

hola a todos, a ver como puedo intrumentar este escrip para que el usuario tenga que escribir al menos 60 caracteres
Código PHP:
<SCRIPT LANGUAGE="JavaScript">
function 
validate() {

var 
theMessage "Por favor rellene los campos siguientes: \n-----------------------------------\n";
var 
noErrors theMessage

if (document.form.nombre.value=="") {
theMessage theMessage "\n --> NOMBRE";
}

if (
document.form.apellido.value=="") {
theMessage theMessage "\n --> APELLIDO";
}

if (
document.form.telefono.value=="") {
theMessage theMessage "\n --> TELEFONO";
}

if (
document.form.direccion.value=="") {
theMessage theMessage "\n --> DIRECCION";
}

if (
document.form.ci.value=="") {
theMessage theMessage "\n --> CEDULA IDENTIDAD";
}

if (
document.form.email.value=="") {
theMessage theMessage "\n --> EMAIL";
}

if (!/^
w+([.-]?w+)*@w+([.-]?w+)*(.w{2,4})+$/.test(document.form.email.value)){
theMessage theMessage "\n --> DIRECCION DE EMAIL INCORRECTA";
}
if (
document.form.aviso.value=="") {
theMessage theMessage "\n --> POR FAVOR AGREGE SU AVISO";
}
if (
theMessage == noErrors) {
return 
true;

} else {

alert(theMessage);
return 
false;
}
}
// End -->
</script> 
desde ya gracias