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?
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:
Client JavaScript:
Server:
If you want to have this form open in a new tab, just set the attribute
targetto_blank.