php - What is the proper way to validate a physical commercial/residential address? -
currently, limit address 100 characters no rules must composed of. punctuation, digits, letters; welcome.
i use strip_tags
upon saving address database (prepared statements). use $this->escape()
(zend framework) when echoing page.
i don't want go crazy, think need little more restrictive. missing?
if these addresses, should use united states postal service's apis , standardize addresses.
Comments
Post a Comment