title: Can I use $_POST & $_GET at the same time?
body: <p>I have a following form:</p>
  
  <pre><code>&lt;form action="doThis.php?warehouse=12" method="post"&gt;
    &lt;input name="field1" type="text" /&gt;
    &lt;input name="field2" type="text" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And <code>doThis.php</code>:</p>
  
  <pre><code>$field1 = mysql_real_escape_string($_POST['field1'], $mysql);
  $field2 = mysql_real_escape_string($_POST['field2'], $mysql);
  
  $warehouse = $_GET['warehouse'];
  if ( !someTableNameValidation($warehouse) ) {
      someErrorHandling();
  }
  $qry = "INSERT INTO table".$warehouse." ( field1, field2 ) VALUES( '$field2', '$field2') ";
  $result = @mysql_query($qry, $mysql);
  </code></pre>
  
  <p>As you can see, I'm using $_POST to get data from the form, and $_GET to get variable <code>$warehouse</code> which is used to indicate table number.</p>
  
  <p><strong>Can I use both $_POST &amp; $_GET at the same time? Is this kind of usage correct?</strong></p>