title: <br /><b>Notice</b>: Undefined variable: user_name in <b>C:\xampp\htdocs\form2\edit.php</b> on line <b>7</b><br />
body: <pre class="lang-html prettyprint-override"><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;&lt;/title&gt;&lt;/head&gt;
  &lt;body&gt;
  &lt;form action="#" method="POST" enctype="multipart/form-data"&gt;
  &lt;input type="text" name="usname" value = "&lt;?=$user_name;?&gt;"/&gt;
  &lt;input type="password" name="psd" value = "&lt;?=$pass_word;?&gt;" /&gt;
  &lt;input type="textarea" name="addrs" value = "&lt;?=$address;?&gt;"&gt;
  &lt;input type="hidden" name="id" value = "&lt;?=$id?&gt;"/&gt;
  &lt;input type="submit" name="submit" value="submit"/&gt;
  &lt;/form&gt;
  &lt;?php
  if(isset($_POST['submit'])){
  
      $sql= "Update form set user_name='".$_POST['usname']."',
                           pass_word='".$_POST['psd']."',
                           address='".$_POST['addrs']."'
   where id='".$_GET['id']."'
   ";
  
   $result=mysql_query($sql);
  if($result)
  {
      echo"data is succesfully data insert";
  header("location:login.php");
  }else
  {echo"";}
  }
  $id='';
  $user_name='';
  $pass_word='';
  $address='';
  $host="localhost";
  $username="root";
  $password="";
  $db="form2";
  $con=mysql_connect($host,$username,$password);
  
  if(isset($_GET['id']))
  {
   echo $query = "select id,user_name,pass_word,address from form where id=".$_GET['id'];
  mysql_select_db($db,$con);
  
   echo $result=mysql_query($query);
  if($result){
      while($row= mysql_fetch_array($result))
       $id=$row['id'];
       $user_name=$row['user_name'];
       $pass_word=$row['pass_word'];
      $address=$row['address'];
  
      }
  }
  ?&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><br /><b>Notice</b>:  Undefined variable: user_name in <b>C:\xampp\htdocs\form2\edit.php</b> on line <b>7</b><br /></p>
  
  <p>•••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••</p>
  
  <p><br /><b>Notice</b>:  Undefined variable: address in <b>C:\xampp\htdocs\form2\edit.php</b> on line <b>9</b><br />
    submit</p>
  
  <p>i am create a edit.php and update the values <br/></p>
  
  <p>I'm running a PHP script, and maintain getting errors like:</p>