Avatar of DantechIT
DantechIT
 asked on

ups/fedex/usps, etc tracking on my site?

How can I offer tracking for packages on my web site?
HTMLJavaScriptAJAX

Avatar of undefined
Last Comment
DantechIT

8/22/2022 - Mon
Gurvinder Pal Singh

what 'packages' are we talking about here? Kindly explain the business/technical functionality details
DantechIT

ASKER
ups/fedex/usps, etc

I just want a search bar on a html web page that the customer can search for their package using the tracking number.
Gurvinder Pal Singh

Your help has saved me hundreds of hours of internet surfing.
fblack61
DantechIT

ASKER
Yes,
something like the Search Bar with Store Selection would be ideal if it had those i the dropdown.

A search bar for each company would work as well.
Gurvinder Pal Singh

so, did the share linked helped you? any problems in coding that search bar?
leakim971

⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
DantechIT

ASKER
Here is a great example of what I am looking for.

http://www.boxoh.com/

I was hoping there was some kind of script or widget already made to do this so i can just stick it in the html and be done with it.
Ray Paseur

Got a neglected question alert on this one.

If you like boxoh, why not just use boxoh?  It is a RESTful interface.
http://www.boxoh.com/?t=1zl43

Here are the terms of use:
http://www.boxoh.com/terms/

Best of luck with your project, ~Ray
DantechIT

ASKER
Thank you for the reply!

Any advice on how to use it?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Ray Paseur

Can you please give me a current and valid tracking number?  I can only demonstrate a "fail-to-find" condition because I do not have a tracking number!
Ray Paseur

See http://www.laprbass.com/RAY_temp_dantechit.php
Outputs:
Oops!
The tracking number you provided appears to be invalid. Please double-check and try again.
<?php // RAY_temp_dantechit.php
error_reporting(E_ALL);
echo "<pre>";

// NOTE THE USE OF THE t= ARGUMENT IN THE URL
$url = 'http://www.boxoh.com/?t=1zl43';

// READ THE PAGE
$htm = file_get_contents($url);

// OPTIONAL FOR DEBUGGING: SHOW THE HTML STRING
// echo htmlentities($htm);

$arr = explode('<div id="error">', $htm);
$arr = explode('</div>', $arr[1]);
echo $arr[0];

Open in new window

DantechIT

ASKER
9101128882300247104898

here you go
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Ray Paseur

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
DantechIT

ASKER
Thank you very much. I just got a rss on my yahoo homepage. How can I have it just display on the screen?
DantechIT

ASKER
found the api thanks!
Ray Paseur

Thanks for the points -- very interesting question! ~Ray
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
DantechIT

ASKER
No problem. I still can't figure out how to use it though. lol