Posted by Andrzej Guzandrow on 07/20/05 14:27
Stephanie wrote:
> I tried to add some e-mail vallidation but is fails.
>
> if(!$_POST['email']&&$req_email||ereg("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/")){
> $missing[]=$req_email;
> $red[1]=" class=\"red\"";
>
> It only validates if the field is not empty, but not for a valid email
> address.
>
> Stephanie
>
>
You may use getdnsrr() with proper keys...
[Back to original message]
|