For emails I've seen some nice work somewhere in the annoted manual.

I think it's in the chapter about regular expressions..

You might not only want to kill anything dangerous.. Checking email address 
is also handy to prevent your database to be filled with crap..

For Phone numbers you could create a page which contains the - between the 
numbers.. so only numbers are allowed.. quite easy with regular expressions..
Or just one filed and check the number someone gives and see if it hold the 
string you thought it should hold.

Think about what you want to allow and what you want to refuse.



At 11:27 8-9-01 -0600, Kevin wrote:
>I am looking for general a function to that would render user input
>I would write my own but don't know what to strip from the input that could
>make it potentially damaging on linux boxes.  I need to accept email and
>phone numbers.
>Thanks in advance,
>PHP General Mailing List (
>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 (
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