|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
how can i check are enter Street Address, city, zip and state valid?
Hi
i have one web site in php. it is almost done. i left one more thing. ome inforamtion users entered must be valid, like street address, city, zip, state... Is there some way to check it? Thaks a lot! |
|
#2
|
|||
|
|||
|
You can do it in two way:
[01]. You can consume a webservice that will check the validity of address information, that will be the state-of-the art solution. for example: http://webservices.eraserver.net/zipcoderesolver/ [02]. or use PHP regular expression to check the validity of address upto a certain level. Make a search in the Internet and certainly you will find lots lots of code to do the purpose. Thanks |
|
#3
|
|||
|
|||
|
Milanvla,
Are you looking to validate addresses to ensure that they are actual EXISTING addresses located somewhere in the world? If not, and you just want to ensure that valid "data" is entered into the fields, you can either use PHP's or Javascript's regular expressions (ie: making sure ONLY numeric values are entered in the telephone field). As for the webservice, iahmed: I gotta look into that... Looks interesting! Thanks for the link.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > how can i check are enter Street Address, city, zip and state valid? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|