ANN Getting Nine digit zip codes
Jim Hurley
jhurley at infostations.com
Wed Apr 13 09:04:49 EDT 2005
I forgot to acknowledge help from Dave Cragg. The handler below is
from Dave and is a wonderful tutorial for anyone interested in
getting info from a web site with data to be filed in. Just run this
on a card with one field and you will see the full 9 digit zip code
for the address: 123 Broad St, 95959
on mouseUp
put empty into field 1
put "Selection=" & 1 after tQuery
put "&" after tQuery
put "address1=" & urlEncode("123 BROAD ST") after tQuery
put "&" after tQuery
put "zipcode=" & 95959 after tQuery
put "http://zip4.usps.com/zip4/zip4_responseA.jsp" into tUrl
post tQuery to url tUrl
if the result <> empty then
answer the result
else
set the htmltext of field 1 to it
end if
end mouseUp
More information about the use-livecode
mailing list