|
I've gone thru the SRS code and have attempted to
figure out what constitutes a valid address. If anyone can verify or add
to this list, I'd really appreciate it.
I'm very interested in how the SRS servers
determine if a field is valid (I'd love to get my hands on the RegExps used by
the server..). Are the checks being performed by the client code
complete? If not, what extra checks are the servers
performing?
Thanks
* = required field (perform Trim() before
checking length)
first_name*
string (max 64 chars) All characters allowed Must contain at least one alpha character last_name* string (max 64 chars) All characters allowed Must contain at least one alpha character org_name* string (max 64 chars) All characters allowed Must contain at least one alpha character address1* string (max 64 chars) All characters allowed address2 string (max 64 chars) All characters allowed address3 string (max 64 chars) All characters allowed city* string (max 64 chars) Must contain at least one alpha character state string (max 32 chars) If country is "us" or "ca" then can't be blank Must contain at least one alpha character postal_code string (max 32 chars) If country is "us" or "ca" then this cannot be blank country* string (must be 2 chars--2 letter ISO country code) phone* string (max 20 chars) Must contain at least 7 digits and must satisfy /^\+?[\d\s\-\.\(\)]+$/ fax string (max 20 chars) All characters allowed email* string (max 255 chars) Must be in valid email address format url string (max 255 chars) Anything goes?? |
