title: How can i pass the variable in the anchor to the next page?
body: <p>I have two pages where one links one to the other. How can i pass the value of the variable(region_name) in my anchor(select.php) to the next page(display.php)? i used the following codes and im getting <code>Notice: Undefined variable: region_name</code>.how do i fix it?</p>
  
  <p>select.php</p>
  
  <pre><code>        &lt;div class="panel panel-default"&gt;
              &lt;div class="panel-heading"&gt;
                  &lt;h4 class="panel-title"&gt;
                      &lt;a name="region_name" method="POST" value="Greater Accra Region" type="submit" href="display.php" target="main"&gt;Greater Accra Region&lt;/a&gt;
                  &lt;/h4&gt;
              &lt;/div&gt;
          &lt;/div&gt; 
  </code></pre>
  
  <p>display.php</p>
  
  <pre><code>&lt;?php 
  ob_start();
  session_start();
  if(isset($_POST['region_name'])){
      $region_name = $_POST['region_name'];
  }
  
  $con=mysqli_connect("localhost","root","root","findings");
  // Check connection
  if (mysqli_connect_errno()) {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  $sql="SELECT * FROM approved_reservation WHERE region_name = '$region_name'";
  
  $records=mysqli_query($con,$sql);
  
  ?&gt;
  </code></pre>