title: How can I Fetch data after selecting from dropdown list
body: <p>I want to fetch data from dropdown list. Like if I choose employee id 40 from the dropdown list it will fetch the data from database of that employee and will shown in the textboxes.</p>
  
  <p>this is my dropdown code. please help me how can i get the selected value.</p>
  
  <pre><code>&lt;?php
      $con=mysqli_connect("localhost","root","","hct_db");
      // Check connection
      if (mysqli_connect_errno()) {
          echo "Failed to connect to MySQL: " . mysqli_connect_error();
      }
  ?&gt;
  
   &lt;label&gt;Select Employee ID&lt;/label&gt;
       &lt;select class="form-control" name="employee_id"&gt;
           &lt;?php 
           $result = mysqli_query($con,"SELECT employee_id FROM employee order by employee_id");
  
           while($row = mysqli_fetch_array($result)) 
               echo "&lt;option value='" . $row['employee_id'] . "'&gt;" . $row['employee_id'] . "&lt;/option&gt;";
           ?&gt;
       &lt;/select&gt;
  </code></pre>