Hi,

> Can any point me to a nice GNU php validation library?
> Looking for something thats strips bad user input and validates email,
> tel etc etc...

        I don't have a link to a library, but, here's a function to validate e-mail
addresses:

if (!ereg ("^[^@ [EMAIL PROTECTED]@ ]+\.[^@ \.]+$", $_POST["email"])) {
        $error = 1;
        $msg  .= "Invalid e-mail address.<br>";
}

-Dan Joseph


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to