Guest Posted December 29, 2006 Share Posted December 29, 2006 I am trying to make realty site and i need a function that will verify that an input is a house address. How can i do this reasonably? Link to comment https://forums.phpfreaks.com/topic/32199-address-verification/ Share on other sites More sharing options...
ted_chou12 Posted December 29, 2006 Share Posted December 29, 2006 jeff, you need to be much more specific with your address :-\, because the address can be in lots of different format, may be what you should do is separate the data by country, province, zip code, street number, room number or something like that so you can check if the string entered is purely numerical or alphbetical. Link to comment https://forums.phpfreaks.com/topic/32199-address-verification/#findComment-149479 Share on other sites More sharing options...
NickG21 Posted December 29, 2006 Share Posted December 29, 2006 i found this site doing a search online for a similar problem. it doesn't do an exact address validation but it does validation of state and valid zipcodes for that state. not sure if it is going to help you, but hopefully it doeshttp://www.zend.com/codex.php?id=991&single=1 Link to comment https://forums.phpfreaks.com/topic/32199-address-verification/#findComment-149493 Share on other sites More sharing options...
Guest Posted December 29, 2006 Share Posted December 29, 2006 well im trying to make a search of the site and if they put in a address it will search the db for that house other wise just search through the pages in the site. I need a function to tell me if it is a address so it knows to check the db. I need it to look for somthing like 123 fake street city state zip and I saw somewhere where you can parse a string and then check if the first part is numbers the second part is alpha does anyone know what im talking about? Can you send me a link to that i would like to know how to do that but i cant find what it is called. Link to comment https://forums.phpfreaks.com/topic/32199-address-verification/#findComment-149525 Share on other sites More sharing options...
NickG21 Posted December 29, 2006 Share Posted December 29, 2006 http://www.serviceobjects.com/support/dots_example_code.asphere are a few already written scripts and examples using NuSOAP and cURL, just download the examples and check them out, i am not familiar with them but they looked good to me, hope it helps Link to comment https://forums.phpfreaks.com/topic/32199-address-verification/#findComment-149531 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.