Make a Tool Script for Pin Code Finder

 Make a Tool Script for Pin Code Finder

Make a Tool Script for Pin Code Finder

Index.html


<!DOCTYPE html>
<html>
<head>
  <title>PIN Code Finder</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f2f2f2;
      margin: 0;
      padding: 20px;
    }

    .container {
      max-width: 400px;
      margin: 0 auto;
      background-color: #fff;
      padding: 20px;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    h1 {
      text-align: center;
    }

    label {
      display: block;
      margin-bottom: 10px;
      font-weight: bold;
    }

    .result {
      margin-top: 20px;
      text-align: center;
      font-weight: bold;
    }

    .btn {
      display: inline-block;
      background-color: #4CAF50;
      color: #fff;
      text-decoration: none;
      padding: 10px 20px;
      border-radius: 4px;
      cursor: pointer;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>PIN Code Finder</h1>
    <form action="find.php" method="post">
      <label for="pincode">Enter PIN Code:</label>
      <input type="text" name="pincode" id="pincode" placeholder="PIN Code" required>
      <button class="btn" type="submit">Find</button>
    </form>
  </div>
</body>
</html>

    Find.php


<!DOCTYPE html>
<html>
<head>
  <title>PIN Code Finder</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      background-color: #f2f2f2;
      margin: 0;
      padding: 20px;
    }

    .container {
      max-width: 400px;
      margin: 0 auto;
      background-color: #fff;
      padding: 20px;
      border-radius: 5px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    h1 {
      text-align: center;
    }

    .result {
      margin-top: 20px;
      text-align: center;
      font-weight: bold;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>PIN Code Finder</h1>
    <?php
      $pincode = $_POST['pincode'];

      // Perform PIN code lookup logic here
      // Replace the following with your own PIN code lookup implementation
      $city = lookupCityByPincode($pincode);

      if ($city) {
        echo "<div class='result'>City: " . $city . "</div>";
      } else {
        echo "<div class='result'>Invalid PIN code</div>";
      }

      // Function to lookup city by PIN code
      function lookupCityByPincode($pincode) {
        // Implement your own logic here to lookup the city based on the PIN code
        // You can use a database, API, or any other data source to perform the lookup
        // For demonstration purposes, let's assume we have a hardcoded mapping of PIN codes to cities


Post a Comment

0 Comments