title: populate a $_REQUEST variable value from database record - how?
body: <p>I am trying to get the values posted from a form select. The select name is dynamic, meaning that the name value is defined by a database record.</p>
  
  <p>In the form processing script, I want to call back that value via a <code>$_REQUEST</code>.</p>
  
  <p>I cannot know in advance what the value of the <code>$_request</code> will be (eg, <code>$var=$_REQUEST['foo'];</code> ) but I do know that the value is one originitating from a database table.
  Knowing this I create a database call, then use a <code>foreach</code> to loop through the possible values.</p>
  
  <p>I want to create a <code>$_request</code> for each pass.</p>
  
  <p>eg..</p>
  
  <pre><code>$prod_prop_name=mysql_query("SELECT * FROM `dshop_options_name`");
  $prod_prop_name_array= array();
  while($data9=mysql_fetch_array($prod_prop_name)) {
  $prod_prop_name_array[]=$data9;
  }
  foreach($prod_prop_name_array as $rowNum =&gt; $data9){
  $option_id=$data9[0];
  $option_name=$data9[1];
  echo"$option_name";
  if($option_name==""){}
  else{
  $varnval=$_REQUEST[$option_name];  // this is my try at getting the var value
  echo "$varnval"; // this is the output test
  }
     }
  </code></pre>
  
  <p>Problem I am having is that on the local server, I get a value, but on the webserver I get none. You can see I am using an <code>echo</code> to see what happens. <code>$varnval</code></p>
  
  <p>Can anyone suggest a workaround for this issue?</p>
  
  <p>Many Thanks</p>
  
  <p>KF</p>