title: Undefined index: fname and ffname in php errors
body: <blockquote>
    <p>Notice: Undefined index: fname in C:\xampp\htdocs\handleform\index.php on line 14 <br>
    Notice: Undefined index: ffname in C:\xampp\htdocs\handleform\index.php on line 15</p>
  </blockquote>
  
  <p>Line <code>14</code> and <code>15</code> contains</p>
  
  <pre><code>$fname = $_POST["fname"];
  $ffname = $_POST["ffname"];
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;form action="process.php" method="post"&gt;
      first Name: &lt;input type="text" name="fname" id="fname"/&gt;&lt;/br&gt;&lt;/br&gt;
      family Name: &lt;input type="text" name="ffname" id="ffname"/&gt;&lt;/br&gt;&lt;/br&gt;
      Email: &lt;input type="email" name="email"/&gt;&lt;/br&gt;&lt;/br&gt;
      &lt;input type="submit" name="submit"/&gt;&lt;/br&gt;&lt;/br&gt;
  &lt;/form&gt;
  
  &lt;?php
  $fname = $_POST["fname"];
  $ffname = $_POST["ffname"];
  
  $var_all = $fname . " " .$ffname;
  
  echo '&lt;span class="label-'.$var_all .'"&gt;'.$var_all. '&lt;/span&gt;';
  ?&gt;
  </code></pre>