title: how to post two field values in one variable
body: <p>I have two fields</p>
  
  <pre><code>&lt;form action="insert.php" method="post"&gt;
  Firstname: &lt;input type="text" name="firstname" /&gt;
  
  Lastname: &lt;input type="text" name="lastname" /&gt;
  
  Age: &lt;input type="text" name="age" /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>how to post name and lastname in one variable meaning in one field of database
  is it</p>
  
  <pre><code>&lt;?php
      $name=$_post['firstname']['lastname'];
  ?&gt;
  </code></pre>