Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8058155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:15:49+00:00 2026-06-05T09:15:49+00:00

DHL lets you track your package on their website, like this: http://www.dhl.com/en/express/tracking.html . Now

  • 0

DHL lets you track your package on their website, like this: http://www.dhl.com/en/express/tracking.html. Now when you enter a tracking number it opens a new window like so: http://www.dhl.com/content/g0/en/express/tracking.shtml?brand=DHL&AWB=SOMENUMBER1234

Now I would like to mimic this behavior on my site. Where I have a form where you can enter a tracking number, and it opens the DHL url. Is this possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:15:51+00:00Added an answer on June 5, 2026 at 9:15 am

    Using the new URL you’ve mentioned in the comments (please also update your post), you can do this with JavaScript and with a redirect through your own server.

    Depending on your server-side scripting language, you may have to handle the server part differently. The following example is for PHP:

    Client HTML:

    <form method="GET" action="dhl_redirect.php" id="myForm">
        <input type="hidden" name="id" value="" id='myId' placeholder="Enter tracking number" />
    </form>
    

    Client JavaScript:

    (function(){
     var form=myForm;
     form.addEventListener('submit',function(evt){
       var dhlUrl="https://dhlforyou.nl/login/track/";
    
       var id=document.getElementById('myId');
       if(/^\d+$/.test(id.value)){
        if(myForm.target==='_blank'){
         window.open(dhlUrl+id.value);
        }else{
         location.href=dhlUrl+id.value;
        };
    
       evt.preventDefault();
    
    
     },false);
    })();
    

    Server:

    <?php
     if(isset($_GET['id'])&&!is_nan(intval($_GET['id']))){
      $dhlId=$_GET['id'];
    
      header('Location: https://dhlforyou.nl/login/track/'.dhlId);//Redirect to DHL
      exit;//Skip the rest of the script
    
     }else{//ID not set or not a number
    
        header('Location: myHTMLform.htm');
     }
    ?>
    

    If you want to have this form open in a new tab, just set the attribute target to _blank.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our company,i got a request, print dhl & fedex express document on the
Suppose, I have a table like this- Code | something ------------------ C01 abc C02
So I have this big, hairy if/else statement. I pass a tracking number to
Does anyone know if I can create an HTML Form to search the DHL
I am having some issues receiving UTF-8 XML files back from DHL API. As
I have 3 arrays like so, that can contain an infinite number of items:
I have a serialized hash of a checkbox, and i would like to display
I want to send a order tracking link on the confirmation email that magento
NSArray *array = [[NSArray alloc] initWithObjects:@ΕΛΤΑ, @ΕΛΤΑ COURIER, @ACS, @ACS ΕΞΩΤΕΡΙΚΟ, @DHL, @INTERATTICA, @SPEEDEX,
How to add a field in shipping method dhl in admin area in magento?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.