Skip to content
Advertisement

Track delivery status of DHL via form

I have a question. I have the following PHP script

JavaScript

This allows me to check the status of a delivery number from DHL using a form with the following PHP.

JavaScript

Maybe there is a better way to do this, but this works so far.

But this only works if I put the dhlsendeverfolgung.php in the root directory.

But I would like to be able to track a delivery number from a subpage of my website like https://samplepage/dhl-tracken using the form with the above code. But I don’t know in which folder I have to put the php file to achieve this or whatelse I have to do so that the link is found like when I have the form on the home page and in the root the php file.

Can someone help me to achieve this?

Furthermore, I would like to achieve that the DHL web page with the query opens in a new window and does not open in the same,

What do I need to do?

Would appreciate help

Advertisement

Answer

You could actually simplify this alot and do away with the other page entirely using javascript:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement