title: MYSQL PHP form submit issue
body: <p>I have a form with the action of this:</p>
  
  <pre><code>foreach ($_POST as $key =&gt; $val)
      {
          mysql_query("INSERT INTO wp_10_options (option_name, option_value) VALUES ($key, $val) ON DUPLICATE KEY UPDATE option_value = $val;");
      }
  </code></pre>
  
  <p>and the actual code in the form is this: </p>
  
  <pre><code>$args = array(
                  'type'                     =&gt; 'post',
                  'hide_empty'               =&gt; 0, //&lt;--IMPORTANT!!
                  'hierarchical'             =&gt; 1,
                  'taxonomy'                 =&gt; 'category',
                  'pad_counts'               =&gt; false );
                  $categories = get_categories($args);
                  foreach($categories as $category) { 
                          echo '&lt;tr&gt;';
                          echo "&lt;td&gt;$category-&gt;name&lt;/td&gt;";
                          $sql = "SELECT option_value FROM wp_10_options WHERE option_name='$category-&gt;slug'";
                          $result = mysql_query($sql);
                              while($row = mysql_fetch_array($result))
                            {
                           echo "&lt;td&gt;&lt;input type='text' name='$category-&gt;slug' value='".$row['option_value']."' /&gt;&lt;/td&gt;";
                            }
  
                          echo '&lt;/tr&gt;';
                      }
  </code></pre>
  
  <p>Yet it adds nothing to the table? Can someone see why? I have checked and the post data is being sent? And it connects to the DB fine?</p>
  
  <p>Before you all ask, yes I realize the security threats and etc...</p>