> I need to filter out certain characters from being
> stored in the database from our signup form. The
> fields include first name, last name, street address,
> city, zip, etc.
> Question 1: What characters should be allowed, other
> than lowercase, uppercase, digits, and the space
> character?

Some names have ' or - in them, same for addresses.
> Question 2: What is a regular expression for this?

Yes...there is a regular expression for everything. :)

Just come up with some functions that filter the input based on a few
regex. You can display it with htmlentities() and it'll stop javascript
and html from being evaluated.

---John Holmes...

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

Reply via email to