<?php

include "config/database.php";

if(isset($_POST['submit'])){

	$tid = $_POST['tid'];




	if($tid == ""){

	echo "<script>alert('Please enter a tracking Number')</script>";

	}else{


		$sql= "SELECT * FROM track WHERE pid = '$tid'";
		$result = mysqli_query($link,$sql);
		if(mysqli_num_rows($result) > 0){
		  $row = mysqli_fetch_assoc($result);

		  $pid = $row['pid'];
		  if(isset($row['pid'])){

			  $pid = $row['pid'];



	if($tid == $pid){



	header("Location:result.php?track=$tid");

	}

	else{

		echo "<script>alert('No record for the track number')</script>";
	}

}

}

}
}

?>










<!DOCTYPE html>
<html lang="en">


<!-- Mirrored from www.kosshipping.com/contact.php by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 31 Mar 2019 09:46:47 GMT -->
<!-- Added by HTTrack -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><!-- /Added by HTTrack -->
<head>

    <!-- Metadata & Basic Page Needs -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Pallmart Courier Services - Tracking.</title>
    <meta name="autor" content="www.geniuscodes.com" />
    <meta name="copyright" content="Genius Codes 2016" />
    <meta name="description" content="Integrated logistics services and tailored, customer-focused solutions for imports and exports, cargo handling, courier services, warehousing, transportation and transit challenges." />
    <meta name="keywords" content="Ghana Freight, Ghana Logistics, Ghana Cargo, Ghana Shipping,Tema Freight, Tema Logistics, Tema Cargo, Tema Shipping, Freight, Forwarding, Shipping, Cargo, Exports & Important Ghana, Imports & Exports, Cargo Handling, Ghana, Africa, Best In Ghana" />

    <!-- Favicon -->
    <link rel="apple-touch-icon" sizes="57x57" href="apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="60x60" href="apple-touch-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="72x72" href="apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="114x114" href="apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="120x120" href="apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="144x144" href="apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="152x152" href="apple-touch-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon-180x180.png">
    <link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="android-chrome-192x192.png" sizes="192x192">
    <link rel="icon" type="image/png" href="favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16">
    <link rel="manifest" href="manifest.json">
    <link rel="mask-icon" href="safari-pinned-tab.html" color="#0a599e">
    <meta name="apple-mobile-web-app-title" content="Pallmart Courier Services">
    <meta name="application-name" content="Pallmart Courier Services">
    <meta name="msapplication-TileColor" content="#0a599e">
    <meta name="msapplication-TileImage" content="mstile-144x144.png">
    <meta name="theme-color" content="#ffffff">

    <!-- Load CSS Files -->
    <link href="css/main.css" rel="stylesheet" type="text/css">

</head>

<body>
    <div id="preloader"></div>
    <div id="wrapper">
        <!-- header begin -->
        <header>
            <div class="container">
                <span id="menu-btn"></span>

                <div class="row">
                    <div class="col-md-3">

                        <!-- logo begin -->
                        <div id="logo">
                            <div class="inner">
                                <a href="index-2.html">
                                    <img src="img/logo.png" alt="" class="logo-1">
                                    <img src="img/logo.png" alt="" class="logo-2">
                                </a>

                            </div>
                        </div>
                        <!-- logo close -->

                    </div>

                    <div class="col-md-9">

                        <!-- mainmenu begin -->
                        <nav id="mainmenu-container">
                            <ul id="mainmenu">

                                <li><a href="index-2.html">Home</a>
                                </li>

                                <li><a href="about.html">About Us</a>
                                    <ul>
                                        <li><a href="port.html">Client Portfolio</a></li>
                                    </ul>
                                </li>

                                <li><a href="services.html">Our Services</a>
                                    <ul>
                                        <li><a href="lfs.html">Land Freight</a></li>
                                        <li><a href="afs.html">Air Freight</a></li>
                                        <li><a href="sfs.html">Sea Freight</a></li>
                                        <li><a href="ffss.html">Freight 
										Forwarding Solutions</a></li>
                                    </ul>
                                </li>
                                
                               <li><a href="tracking.html">Tracking</a>


                                <li><a href="contact.html">Contact Us</a>
                                    <ul>
                                        <li><a href="gaq.html">Get A Quote</a></li>
                                    </ul>
                                </li>

                            </ul>
                        </nav>
                        <!-- mainmenu close -->

                        <!-- search -->
                        <div class="search text-right">
                            <input type="text" name="search" id="search" placeholder="search">
							<button type="submit" class="btn-search-icon">
								<i class="fa fa-search"></i>
							</button>
                        </div>
                        <!-- social icons close -->

                    </div>
                </div>
            </div>
        </header>
        <!-- header close -->

        <!-- subheader begin -->
        <section id="subheader" class="page-contact no-bottom" data-stellar-background-ratio="0.5">
            <div class="inner">
                <div class="container">
                    <div class="row">
                        <div class="col-md-12">
                            <h1>Tracking</h1>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- subheader close -->



        <!-- content begin -->
<div id="maincol">
				
				  <h1>Track your shipment</h1>
					
					<div style="width: 389px; height: 393px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; padding-top: 20px">
					  <form class="tracking-wrap" action="track.php" method="POST">
					    <p>Enter your Tracking number here to track your 
						package!.</p>
					    <p>&nbsp;</p>
					    <table width="100%" border="0">
					      <tr>
					        <td width="90%"><label for="tracknum"></label>
                              <input name="tracknum" type="text" class="newtxt-box" id="tracknum" value="" size="33" maxlength="10" />
				            <button class="default-btn active" type="submit" name="submit">Track Now</button></td>
					        <td width="5%">&nbsp;</td>
				          </tr>
				        </table>
					    <p>&nbsp;</p>
					  </form>
					</div>
				</div>
			</div>
		</div>
    <!-- content close -->

    <!-- footer begin -->
    <footer>

        <div class="subfooter">
            powered by <a href=""> 
			Kwas Co. ®</a> 2019
        </div>

    </footer>
    <!-- footer close -->

    </div>

    <!-- Load JS Files -->
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/jquery.isotope.min.js"></script>
    <script src="js/easing.js"></script>
    <script src="js/jquery.ui.totop.js"></script>
    <script src="js/selectnav.html"></script>
    <script src="js/ender.js"></script>
    <script src="js/owl.carousel.js"></script>
    <script src="js/jquery.fitvids.js"></script>
    <script src="js/jquery.plugin.js"></script>
    <script src="js/wow.min.js"></script>
    <script src="js/jquery.magnific-popup.min.js"></script>
    <script src="js/tweecool.js"></script>
    <script src="js/instafeed.min.js"></script>
    <script src="js/jquery.stellar.js"></script>
    <script src="js/typed.js"></script>

    <!-- Theme and Plugins -->
    <script src="js/custom.js"></script>
    <script src="js/custom-tweecool.js"></script>
    <script src="js/custom-instafeed.js"></script>
    <script src="js/form-contact.js"></script>
    <script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAX-Qfj0L3rzwIU2KbZwrb8xTF-HMAfryU"></script>
    <script src="js/map-1.js"></script>
    <script src="js/map-2.js"></script>

    <!--Start of Tawk.to Script-->
.    <!--End of Tawk.to Script-->
	
</body>


<!-- Mirrored from www.kosshipping.com/contact.php by HTTrack Website Copier/3.x [XR&CO'2014], Sun, 31 Mar 2019 09:46:49 GMT -->
</html>
