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,