RE: [PHP] ZIP+4 Zipcode / Address Standardizing
| From: | Ruy P. Delgado | Date: | Mon, 17 Jul 2000 21:08:36 +0000 |
| Subject: | RE: [PHP] ZIP+4 Zipcode / Address Standardizing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6958@lists.php.net to get a copy of this message | ||
Hello, sounds very interesting.
I can do a js that would Table1Form.submit() with my database fields but how
exactly can I get this information into PHP variables? how can I parse the
resulting page from the usps site?
Ruy
-----Original Message-----
From: Derek Sivers [mailto:list@hitmedia.com]
Sent: Monday, July 17, 2000 9:34 AM
To: Ruy P. Delgado; php-general@lists.php.net
Subject: Re: [PHP] ZIP+4 Zipcode / Address Standardizing
>Is there a solution for PHP?
Here's what we use 100 times a day on our shipping business. It helps a
LOT.
If you're clever with a little javascript you can take your database
fields, post it into the two TEXT form fields here.
Buying the database from the USPS is so expensive I think the best method
is to interface with their website for free, like this below...
<FORM NAME="Table1FORM"
ACTION="http://www.framed.usps.com/cgi-bin/zip4/zip4inq2"
METHOD=POST>
<INPUT id="FormsEditField6" TYPE="hidden" NAME="Firm"
VALUE="">
<INPUT id="FormsEditField7" TYPE="hidden" NAME="Urbanization">
<p>Street Address:<br>
<INPUT id="FormsEditField8" TYPE="text" NAME="Delivery Address"
VALUE=""
SIZE=30 MAXLENGTH=40 >
<p>
<INPUT id="FormsEditField9" TYPE="hidden" NAME="City"
VALUE="">
<INPUT id="FormsComboBox2" TYPE="hidden" NAME="State"
VALUE="">
<p>Zip Code:<br>
<INPUT id="FormsEditField11" TYPE="text" NAME="Zip Code"
VALUE="" SIZE=10
MAXLENGTH=10 >
<p>
<INPUT TYPE="submit" NAME="Submit" VALUE="Process"
id="FormsButton2">
--
Derek Sivers, CD Baby
http://www.cdbaby.net
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com