Hi,

i'm trying to display db(name,email,telephone no) values in textbox.please help me.

::HTML part::

Code:
 
<form class="form-signin" role="form" id="form1" action="post_user.php">
      
       <label class="">Name</label>
        <input type="text" class="form-control" placeholder="Your Name" value="" required name="yname" id="yname" autofocus ><br/>
         <label class="">Email</label>
                <input type="text" class="form-control" name="email" id="email" placeholder="Email address" required > <br/>
                   
            
    
    <label class="">Telephone Number</label>
       <input type="text" class="form-control" pattern="\d+" placeholder="Telephone" name="telephone" required><br/>
 
<div class="col-md-4 col-md-offset-4">
        <button class="btn btn-lg btn-primary btn-block" type="submit">Submit Ad</button>
        </div>
</form>

:ost_user.php::

Code:
<?php
 
$con = mysql_connect("localhost","root","");
if(!$con)
{
die('Could not connect:'.mysql_error());
}
mysql_select_db("biz",$con);
 
$mail=$_POST['email'];
 
 
$query = mysql_query("SELECT yname,mail,tp FROM reg WHERE mail = '$mail' ");
 
while($row = mysql_fetch_array($query))
    {
   
 echo $row['yname'];     
  echo $row['mail'];   
   echo $row['tp'];                
    } 
mysql_close($con);
?>