title: fill in the form's values with what the user had typed
body: <p>i am trying to validate the form on the same page, but i am getting an error. i want to fill in the form’s values with what the user had typed. the html code is:</p>
  
  <pre><code>&lt;h4&gt;Business Name&lt;/h4&gt;&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="bname" size="30" required x-moz-errormessage="Enter business name" &lt;?php if ( "$_POST[bname]" ) { echo " value='" . $_POST['bname'] . "'";} ?&gt; &gt;&lt;/td&gt;&lt;/tr&gt;
  </code></pre>
  
  <p>and the error message is:  Undefined index: bname in E:\Program Files\xampp\htdocs\registration.php
  ></p>