title: Replacing HTTP_GET_VARS but with what?
body: <p>I am working on legacy code, updating it. </p>
  
  <p>This is part of a form for deleting a number of entries a one time. </p>
  
  <p>After the form is submitted this is the code:</p>
  
  <pre><code>else{
  
  //$msgcheck = db_query("DELETE FROM Comments WHERE ID = '$thisid'");
  
  
  while( $xvar = each( $HTTP_GET_VARS ) )
  {
              //print $HTTP_GET_VARS[$myvarname];
              $myqrystr = "DELETE FROM Comments WHERE ID = '" . $xvar["value"] . "'";
              $msgcheck = db_query($myqrystr);
  }
  </code></pre>
  
  <p>What I don't get is how does this work? As you can see from the commented code the variable is $thisid - but how does the subsequent code know this from HTTP_GET_VARS? I know I should use $_GET instead, but where does the variable come in? </p>