Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/02/2006, 04:53
Avatar de mrgubu
mrgubu
 
Fecha de Ingreso: febrero-2002
Ubicación: Granada
Mensajes: 431
Antigüedad: 22 años, 3 meses
Puntos: 2
Estoooo.... me estoy haciendo un lío como siempre conlos return true y los return false.

Javier B podrías explicarme como insertar el disabled en el form que actualmente tengo:

<SCRIPT type="text/javascript" ><!-- //
function form_validator(theForm)
{

if(theForm.mensaje_autor.value == "") {
alert("El campo Nombre no puede estar vacío");
theForm.mensaje_autor.focus();
return(false);
}

if(theForm.mensaje_body.value == "") {
alert("El campo Cuerpo no puede estar vacío");
theForm.mensaje_body.focus();
return(false);
}

return (true);

}
// -->
</SCRIPT>


<form method="POST" action="insertcoment.asp" name="formulario" onSubmit="return form_validator(this);">
Autor: <input type="text" name="mensaje_autor">
Email: <input type="text" name="mensaje_email">
Titulo:<input type="text" name="mensaje_tit">
Comentario:<textarea class="TextBox" name="mensaje_body" ></textarea>
<input type="submit" class="Boton1" value="Enviar" id="submitButton">

</form>

Gracias