I have a Html Form with 3 Text Box 1 Search Box and a Button 2 Textbox to retrieve the search data from mySql
This is my HTML Form
  <form class="form" action="getData.php" method="post">
        <input type="text" name="search" placeholder="Username" >
        <button type="submit" name="submit" >Search</button>
    </form>
  <input type="text" name="UserID" placeholder="Username" >
        <input type="UserEmail" name="password" placeholder="Email">
Now my PHP Code
<?php
    $search=POST['search'];
    $dbhost = 'localhost:3036';
    $dbuser = 'root';
    $dbpass = 'rootpassword';
    $conn = mysql_connect($dbhost, $dbuser, $dbpass);
    if(! $conn )
    {
       die('Could not connect: ' . mysql_error());
    }
    $sql = 'SELECT emp_id, emp_name, emp_salary FROM employee';
Now how do I pass the data to the Textbox in the HTML?
 
     
    