Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/10/2006, 12:47
Avatar de JavierB
JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 23 años
Puntos: 772
Hola ismapolo

Prueba este ejemplo:
Código PHP:
<html>
<
head>
<
script type="text/javascript">
function 
validar(frm) {
  
texto frm['txt'].value;
  return (
texto.indexOf('http') == -1);
}
</script>
</head>
<body>
<form action="tupagina.php" onsubmit="return validar(this)" />
<input type="text" name="txt" />
<input type="submit" />
</form>
</body>
</html> 
Saludos,