%Option Explicit%>
<%
'*************************************************************
' Version 6.50
' UPS Tracking
' Nov 12, 2005
'***************************************************************
Dim action, theTrackNumber
dim result, xmlerror
Dim ShipperNumber,shiptoon,Addresson,activitystart,statustypeon,Trackingnumber2,Activitycount
dim descriptionact(30),SignedForByName,statustypearr(30),shipdatearr(30),shiptimearr(30),theweight
'VP-ASP 6.09 - dim shipcity
dim AddressLine1,AddressLine2,Cityarr(30),StateProvinceCodearr(30),PostalCode,CountryCodearr(30)
dim theservice, servicestart, unitstart, theweightunit,Address
'VP-ASP 6.09 - set activitycount to 0
activitycount=0
action=Request.form("action")
ShopPageHeader
ShopOpenDatabase myconn
If action="" Then
DisplayForm
else
ProcessUserAction
end if
ShopCloseDatabase myconn
ShopPageTrailer
SUB ProcessUserAction
DetermineOIDorTracking
if serror = "" then
SendTrackingRequest
AnalyzeTrackXML
If Statuscode=0 then
Serror= "ERROR: " & Statusmessage & "
"
ShopCloseDatabase myconn
shoperror serror
serror = ""
end if
DisplayResult
else
ShopCloseDatabase myconn
shoperror serror
serror = ""
end if
end sub
Sub DisplayForm
%>
 |
UPS, UPS brandmark, and the Color Brown are trademarks of United Parcel Service of America, Inc. All Rights Reserved.
|
|
<