![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/10/2009, 14:12
|
![Avatar de dcreate](http://static.forosdelweb.com/customavatars/avatar326327_7.gif) | | | Fecha de Ingreso: octubre-2009 Ubicación: Veracruz
Mensajes: 536
Antigüedad: 15 años, 3 meses Puntos: 22 | |
Respuesta: como validar campos de texto pues yo lo hago con javascript y es asi
<script>
function validar(formulario)
{
if(formulario.nombre.value=='' || formulario.nombre.value=='----NOMBRE COMPLETO----')
{
alert("LLENAR CAMPOS NECESARIOS\n-NOMBRE");
formulario.nombre.focus();
return false;
}
return true;
}
</script>
lo pones en la etiqueta head
y en el form pones estoç
<form onsubmit="return validar(this),etc,etc >
espero te sriva |