DHL Tracking HTML Form? - html

Does anyone know if I can create an HTML Form to search the DHL tracking website?
http://www.dhl.co.uk/en/express/tracking.html
I have tried using the following but get the error 'down for maintenance':
<!DOCTYPE html>
<!--[if IE]>
<![endif]-->
<html><head><meta charset="utf-8" />
</head>
<body>
<form action="http://www.dhl.co.uk/content/gb/en/express/tracking.shtml?brand=DHL&AWB=1212121212" method="post">
<input type="submit" value="go" />
</form>
</body>
</html>
Will I have to use the API?

The following HTML tracking sample enables you to insert a single waybill number into a tracking field and submit the request via your existing web page. This link takes you to the DHL tracking screen, automatically populating the shipment information.
<html>
<head>
<title>DHL - Track By Tracking Number</title>
</head>
<body>
<form name="form1" method="get" action="http://www.dhl-usa.com/content/us/en/express/tracking.shtml?">
< input type=hidden name=brand VALUE="DHL">
<input type="text" name="AWB" size="10"><br>
<input type="submit" value="Submit"><br>
<input type="reset" value="Reset">
</body>
</html>

Big shout out to #WeezHard for dropping that form. I figured his solution is directed at DHL USA, so if you want a global DHL tracking form you can use the follow code.
<form name="form1" method="get" action="https://www.dhl.com/global-en/home/tracking/tracking-express.html?submit=1&tracking-id=" target="_blank">
<input type=hidden name=submit VALUE="1">
<input type="text" name="tracking-id" size="10" placeholder="Enter your DHL waybill number here..."><br>
<input type="submit" value="Track">
</form>

I modified #WeezHard codes to adapt Aramex courier tracking
<form name="form1" method="get" action="https://www.aramex.com/track/results?
ShipmentNumber=" target="_blank">
<input type="text" name="ShipmentNumber" size="11" placeholder="Enter your AWB"><br>
<input type="submit" value="Track">
<input type="reset" value="Reset">
</form>
feel free to use it! ;)

Related

Sending an Email Using R Markdown?

I have always wondered if this is possible in R.
On many websites, there is usually an interactive form which allows the user to send an e-mail to the owner of the website for feedback, comments, questions and suggestions:
Is it possible to create such a form within a Rmarkdown/Flexdashboard document?
I found links online that shows something similar :
https://www.w3schools.com/html/tryit.asp?filename=tryhtml_form_mail
How to send email from HTML Form
For example - I copy and paste this code in the Rmarkdown document:
<html>
<body>
<h2> Questions? Send an e-mail! </h2>
<form action="mailto:antonoyaro_9999999999999#hotmail.com" method="post" enctype="text/plain">
Name:<br>
<input type="text" name="name"><br>
E-mail:<br>
<input type="text" name="mail"><br>
Comment:<br>
<input type="text" name="comment" size="50"><br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
I think this partially worked - but is there a better way to do this?
Thanks!

How can I make a submit button using html for several form action?

Can I use just a single <input type="submit" value="submit"> but for several form actions ...
Say if I type
<form id="form1" action="action1.py" method="get">
<input type="text" name="name">
</form>
<form id="form2" action="action2.py" method="get">
<input type="text" name="random">
<form>
then I want to use just a single <input type="submit" value="submit" or if there is another way to do it? Can anyone please explain me how to do it?

Why HTML "submit" not working?

I am making a Register - Login system in php/HTML and i have 3 php files now, in the first file (registering) worked FORM but in the second (login) not. The submit button don't do anything. What can be the problem?
<HMTL>
<HEAD><h1>Bejelentkezés</h1></HEAD>
<BODY>
<body background="http://wallpaperstock.net/minimal-gray-to-white-gradient_wallpapers_33797_1440x900.jpg"
<form action="afterlogin.php" method="post">
Felhasználónév: <input type="text" name="user2">
Jelszó: <input type="password" name="pass2">
<input type="submit" value="login">
</form>
</BODY>
</HMTL>
Try this...
<html>
<head><h1>Bejelentkezés</h1></head>
<body background="http://wallpaperstock.net/minimal-gray-to-white-gradient_wallpapers_33797_1440x900.jpg">
<form action="afterlogin.php" method="post">
Felhasználónév: <input type="text" name="user2">
Jelszó: <input type="password" name="pass2">
<input type="submit" value="login">
</form>
</body>
</html>
A lot of typo buddy...like HMTL..two body tags...plz do take care of what you write..and get some linting tool...
You have body tag two times in your code,please make it single and close tag is also not there,please add that.

How to get Paypal cart to load into a lightbox

I just putting finishing touches to my website and everytime the links to add to cart are clicked it takes the users to the paypal cart . Is there anyway to load this paypal cart page into a lightbox. Or inside a frame? Becuase all my internal links are loaded with ajax into an appointed Div. So the paypal cart returns the users to the homepage instead of the section where they are making the purchase from. i would like to give my users the full customer experience and keep them engaged on my website
You can use Minicart
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″ />
<title></title>
</head>
<body>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1″ />
<input type="hidden" name="business" value="example#minicartjs.com" />
<input type="hidden" name="item_name" value="Test Product" />
<input type="hidden" name="quantity" value="1″ />
<input type="hidden" name="amount" value="1.00″ />
<input type="hidden" name="currency_code" value="USD" />
<input class="discount_val" type="hidden" name="discount_amount_cart" value="">
<strong>Test Product</strong>
<input type="submit" name="submit" value="Add to cart" />
</fieldset>
</form>
<script src="minicart.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
paypal.minicart.render();
</script>
</body>
</html>
I have added a complete example here
Minicart will show only the cart page that has the PayPal checkout button. But once you click on that button, you will get redirected to PayPal to complete the payment flow. Are you looking for a solution where the user stays on your site and the entire cart + payment experience runs off of a lightbox? If so, look at "Digital Goods for Express Checkout" (https://developer.paypal.com/docs/classic/express-checkout/digital-goods/IntroducingExpressCheckoutDG/). But keep in mind this should be only used for digital goods (such as downloads, etc.). Hope this helps.

how to search the given string in google using text input field?

Hi I am using this form code to enter get the text field. in that text field i will enter some string for search and i press submit button.when i click on submit button it show the search results in google search engine how to do this.
<!DOCTYPE html>
<html>
<body>
<form name="input" action="index.html" method="get">
Search:<input type="text" name="user">
<input type="submit" value="Submit">
</form>
</body>
</html>
Can anyone help me? Thanks In advance......
Simply imitate how Google does it. The key items are the action attribute and the use of the name q for the string:
<!doctype html>
<meta charset=utf-8>
<title>Google search</title>
<form action="http://www.google.com/search">
<label for=q>Keyword(s):</label>
<input type=text name=q size="32" id=q>
<input type="hidden" name="ie" value="utf-8">
<input type="hidden" name="oe" value="utf-8">
<input type="submit" value="Search">
</form>
You can use the Google Custom Search API for this.