title: how to send multiple values for single name through forms?
body: <p>Here is index.php</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;form action="process.php" method="post"&gt;
          &lt;input type="checkbox" name="language" value="C" /&gt;:C
          &lt;input type="checkbox" name="language" value="C++"/&gt;:C++
          &lt;input type="checkbox" name="language" value="java"/&gt;:JAVA
          &lt;input type="checkbox" name="language" value="python"/&gt;:PYTHON
          &lt;input type="checkbox" name="language" value="none"/&gt;:None
          &lt;br/&gt;
          &lt;input type="submit" value="submit" /&gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is my process.php</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;&lt;/head&gt;
  &lt;body&gt;
      &lt;pre&gt;
          &lt;?php
          print_r($_POST);
          ?&gt;
      &lt;/pre&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Both files are in same folder. In these php pages i am trying to show the content of data send through index.php form.<br/>
  But it only shows the last clicked checkbox. For example if i have checked C++ and JAVA then it will only show JAVA all preceding will be kicked off. Since checkbox are made for multiple checks why not it just show it as array(values)? <br/>
  I want to know how to get multiple values for single name?</p>