General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old July 14th, 2003, 09:37 AM
milanvla milanvla is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 21 milanvla User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 54 m 25 sec
Reputation Power: 0
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!

Reply With Quote
  #2  
Old July 14th, 2003, 09:59 AM
iahmed iahmed is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2003
Location: USA
Posts: 171 iahmed User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 58 sec
Reputation Power: 6
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

Reply With Quote
  #3  
Old July 14th, 2003, 07:56 PM
FrankieShakes FrankieShakes is offline
Frank The Tank!
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: Jun 2002
Location: Toronto, Canada
Posts: 1,246 FrankieShakes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Send a message via ICQ to FrankieShakes Send a message via MSN to FrankieShakes
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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > how can i check are enter Street Address, city, zip and state valid?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT