title: Getting All POST Variables instead of hidden fields and submit button
body: <p>I have a form where text fields are created dynamically with the names unknown. I am trying to get those text fields names and values and using the following PHP code.</p>
  
  <pre><code>foreach ($_POST as $key =&gt; $entry)
  {
       if (is_array($entry))
       {
          foreach($entry as $value)
          {
             print $key . ": " . $value . "&lt;br&gt;";
          }
       }
      else 
       {
          print $key . ": " . $entry . "&lt;br&gt;";
       }
  }
  </code></pre>
  
  <p>But the problem is that it gets all the hidden fields and submit button values as well. How can I prevent that from happening?</p>