Quote:
Originally posted by s1em
I wonder if it's something the postal service provides via a web service or something?
|
Both UPS and USPS offer such services.
Quote:
Originally posted by mpedrummer2
What I need to know is how to connect to the database to use that information. I can do it in PHP, but I don't want to refresh the page in the middle of the process.
|
You don't have much choice, I'm afraid. Unless you want to populate a massive JavaScript data structure with ALL that data, you're going to have to hit the server for it. Fortunately, you can do it in a way that's pretty transparent.
Add to the input tag an onChange="form.submit()". And then have the PHP smart enough to know when the JUST zip has just been submitted. Do your db lookup, and generate the page again, populating the forms with the values. If the server's fast enough, the user won't even notice.