title: PHP : checkboxes and name issue
body: <p>I'm writing, for the first time in PHP, a script to process a POSTed form that contains checkboxes.</p>
  
  <p>As you know, checkboxes are grouped by using the same name attribute, and when multiple values occur, $_POST["some_name"] should be storing those in an array.</p>
  
  <p>I tested but instead of the expected array I got one single value -- that of the last checked item.</p>
  
  <p>At this point, somewhat puzzled, I look at some doc to discover that with PHP the checkbox name should end with <code>[]</code>. Is that so? What crazy relation is there expected to exist between an HTML form and a script that processes it? Suppose I don't have access to the HTML field names? Suppose, as it is my case, I have every good reason not to alter my naming scheme just for some obscure nonsense.</p>
  
  <p>Now, it seems there exists at least one solution to the issue: <a href="https://stackoverflow.com/questions/1077506/php-retrieving-value-of-checkboxes-when-name-doesnt-have-array">PHP: Retrieving value of checkboxes when name doesn&#39;t have array</a></p>
  
  <p>I'd like to know if there's a really simple way to do without those crazy brackets, and, incidentally, your opinion on this point? Am I the only one shocked?</p>
  
  <p><strong>EDIT : OK, I can certainly work my way around this issue, but I hoped to be raising some (minor yet) fundamental point regarding some sort of "non-separation of concerns" between HTML and PHP. Obviously, that's none of PHP's business how HTML code should be written.</strong></p>