![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/04/2003, 03:49
|
![Avatar de tunait](http://static.forosdelweb.com/customavatars/avatar3543_1.gif) | Moderadora | | Fecha de Ingreso: agosto-2001 Ubicación: Terok Nor
Mensajes: 16.805
Antigüedad: 23 años, 5 meses Puntos: 381 | |
Pues entonces algo así
<script language="JavaScript">
function verifica(cadena){
pat = /aqui tu cadena a buscar/
if(pat.test(cadena)){return true}
else{alert("tu mensaje");return false}
</script>
Y a tu formulario le pides
<form onsubmit="return verifica(this.nombreDelCampo.value)"> |