Forum Moderators: phranque

Message Too Old, No Replies

is this possible?

from zip code, send contact info to provided email

         

sldesigns

7:48 pm on Jan 25, 2005 (gmt 0)

10+ Year Member



I'm building a web site for a company that sells its product through reps. They would like to have an area where a visitor could enter their email address and zip code, and then automatically send dealer information to them.
It will need to be relatively safe from competitors. The list of dealers needs to be kept private, in case the sales areas are close together.
An alternative would be for the user to enter the same information, and have it automatically forwarded to the correct dealer for them to contact.
What language(s) could this be accomplished in? I don't think I can do it, but want to at least have a clue about that when i farm the job out.

txbakers

9:54 pm on Jan 25, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is very doable in any of the standard languages.

The only catch is you would need to find a database of zip codes and relative locations to those.

I couldn't help you find one, but perhaps someone can post a URL of something like that.

kalos

6:55 pm on Jan 26, 2005 (gmt 0)

10+ Year Member



The main problem with this is that, while the zip code data is free via search from the USPS website, many companies will charge you upwards of $50 ~ $75 for the listing. I wrote a Perl script to cycle through the USPS site a while back and cull the data I needed (zip code, city/state name). I'll look for it and throw it on my server in the tmp directory and shoot you a private message. The data is at least a year old so if you want, I can either regather the data or just post the Perl script for you to run locally on your machine.

-ben