Hi, 

You might want to have a look at
http://www.thewebmasters.net/php/Validator.phtml is a class for
validating serveral things. It is a PHP class. You can have a look at
the regexps they have used. But as stated before it would be better to
check the syntax instead... if it is not a phone number just do not
accept it and require the user to enter it again.

        Sean C. McCarhy
        SCI, S.L. (www.sci-spain.com)

Christian Reiniger wrote:
> 
> On Sunday 09 September 2001 04:46, Kevin wrote:
> > I think my question could be restated to: What characters are
> > potentially lethal in user input.  I can do the regex.  But don't know
> > what to parse out of the strings.
> >
> > would removing  \ /  .  do the trick?
> 
> You mean http://php.net/addslashes I suppose. Also read through the
> config section (magic_quotes_*)
> 
> --
> Christian Reiniger
> LGDC Webmaster (http://lgdc.sunsite.dk/)
> 
> The most exciting phrase to hear in science, the one that heralds new
> discoveries, is not "Eureka", but "That's funny..."
> 
> - Isaac Asimov
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to