title: How to set GET POST and REQUEST strings dynamically
body: <p>Okay So for awhile I have been attempting to set GET POST and REQUEST variables dynamically. </p>
  
  <p>I store the variables I want it to get or post or request inside an sql table. each variable has it's own column. In this same row it records the type I want it to try to use(GET,POST,REQUEST). I am telling you this so you see how I want to go about doing this.</p>
  
  <p><strong>Source</strong></p>
  
  <pre><code>$snmpbq=$os_DB-&gt;query("SELECT * FROM `spiders` WHERE site = '".$site_name."'") or die(mysql_error());
  $num=$os_DB-&gt;num($snmpbq);
  if($num == 1)
  {
  //get row as an associative array
  $pb=$os_DB-&gt;fetch($snmpbq);
  //data request type
  $req_type = $pb['net_req_type'];
  $a1       = $pb['a'];
  $b1       = $pb['b'];
  $c1       = $pb['c'];
  $d1       = $pb['d'];
  $e1       = $pb['e'];
  $f1       = $pb['f'];
  if($req_type == "get")
  {
      $a   = $_GET[$a1];
      $b   = $_GET[$b1];
      $c  = $_GET[$c1];
      $d = $_GET[$d1];
      $e  = $_GET[$e1];
      $f   = $_GET[$f1];
  }
  </code></pre>