Re: Mailing address validation... too many possibilities?

From: Date: Mon, 27 Nov 2000 04:42:12 +0000
Subject: Re: Mailing address validation... too many possibilities?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27305@lists.php.net to get a copy of this message
Hey Dallas: > I need to validate that a mailing address does not contain invalid characters... no > <script> or PHP code for security,.... that sort of thing. Instead of validating the format of > the entry, I think it would be easier to check for cretin invalid characters..... how would I do > this? Check out my Form Solution class: http://www.analysisandsolutions.com/code/form/ The AddressLineStandardization() function should do what you want, and then some. It not only strips invalid characters, it formats the address according to US Postal Service standards. Enjoy, --Dan -- PHP scripts that make your job easier http://www.analysisandsolutions.com/code/ SQL Solution | Layout Solution | Form Solution T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y 4015 7 Ave, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.general (#27305) next »