title: Why i cannot get POST values?
body: <p>This is my form, that is dynamically generated:</p>
  
  <pre><code>&lt;form action='index.php?direction=saveUserPreferences' method='post'&gt;
  &lt;label&gt;Office space&lt;input type='checkbox' name='userInterest[]' value='1' id='1'&gt;&lt;/label&gt;
  &lt;label&gt;Grants&lt;input type='checkbox' name='userInterest[]' value='2' id='2' checked&gt;&lt;/label&gt;
  &lt;label&gt;Loans&lt;input type='checkbox' name='userInterest[]' value='3' id='3'&gt;&lt;/label&gt;
  &lt;label&gt;Events&lt;input type='checkbox' name='userInterest[]' value='4' id='4' checked&gt;&lt;/label&gt;
  &lt;label&gt;Connecting&lt;input type='checkbox' name='userInterest[]' value='5' id='5' checked&gt;&lt;/label&gt;
  &lt;label&gt;Office administration&lt;input type='checkbox' name='userInterest[]' value='6' id='6' checked&gt;&lt;/label&gt;
  &lt;label&gt;TAX&lt;input type='checkbox' name='userInterest[]' value='7' id='7' checked&gt;&lt;/label&gt;
  &lt;label&gt;Self employment&lt;input type='checkbox' name='userInterest[]' value='8' id='8' checked&gt;&lt;/label&gt;
  &lt;label&gt;Start up&lt;input type='checkbox' name='userInterest[]' value='9' id='9' checked&gt;&lt;/label&gt;
  &lt;label&gt;Banks&lt;input type='checkbox' name='userInterest[]' value='10' id='10' checked&gt;&lt;/label&gt;
  &lt;input type='text' name='name' id='name'/&gt;
  &lt;input type='submit' name='sendData' value='Save'/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Form points to controller function:</p>
  
  <pre><code>   public function saveUserPreferences() {
      var_dump($_POST);
  
  }
  </code></pre>
  
  <p>I tried checking whether post is set etc, and i cannot get array from the post.</p>
  
  <p>I have also login form, that points to the same controller and another function, and it works fine. So i know controller file can and do receive post values.</p>
  
  <p>But for some strange reason, for this particular form i cannot get any values. I have looked up another questions and answers, but cannot get this thing to work.I am also familiar with:
  <a href="http://www.html-form-guide.com/php-form/php-form-checkbox.html" rel="nofollow">PHP tutorial about the forms</a></p>
  
  <p>Following that solution i get unidentified index error. Is there something i miss?</p>
  
  <p>Thanks in advance for any tips and tricks ;)</p>
  
  <p>08 03 2015
  Hey once again. I have no idea if that helps someone by i would like to give an update of what is happening. As you know, i would get nothing from the page, that is when i would echo values in php file, there would be nothing. Yet, in the firebug and chrome developer tools (in the headers and response part of network section) i was able to see actual response. So what i did is this: created a demo table in database, and tried to insert values that i should see from the form into database. And weirdly enough, it did worked. So, don't ask me how is it possible, since i have no idea, yet. So i decided to work based on the responses from developer tools and firebug. And current path of my data is this. View->Controller->Model (post data to array variable) -> dao class->database. Ok, thanks all for viewing and commenting on that one. Thanks</p>