I need like,
The customer chooses selected courier service and enters tracking id then clicks its redirect to the appropriate courier service website.
eg: If tracking id 12345 the redirect link should be https://www.fedex.com/apps/fedextrack/index.html?tracknumbers=12345&cntry_code=in
How to do for India courier services?
<!DOCTYPE HTML>
<html>
<body>
<form action="#" method="post">
Select Courier :
<select name="courier">
<option value="">--Please choose an option--</option>
<option value="professional_courier">Professional Courier</option>
<option value="india_post">India Post</option>
</select>
Trackingid: <input type="text" name="trackingid"><br>
<input type="submit">
</form>
<?php
if (!empty($_POST)): header("Location: https://www.tpcindia.com/Tracking2014.aspx?id=".$_POST["trackingid"]."&type=0&service=0");
endif;
?>
</body>
</html>
How to track more than one service, now my code track only one service, how can i add india post if customer choose india post courier service url: https://www.indiapost.gov.in/_layouts/15/dop.portal.tracking/trackconsignment.aspx