title: How to combine a PHP variable and $_REQUEST?
body: <p>I am retrieving data from a dynamic form. For that I have counted the number of elements on the form and made each input have a unique name, using the counter variable, eg:</p>
  
  <pre><code>echo "&lt;input type='hidden' name='itemid" . $i . "' value='" . $row['itemid'] . "' /&gt;";
  </code></pre>
  
  <p>On the relieving page I need to modify <code>$_REQUEST[]</code> to include its own counter variable, eg:</p>
  
  <pre><code>while($x &lt;= $counter){
  
    $itemid = trim($_REQUEST['itemid" . $x . "']);
  
    $x = $x + 1;
  
  };
  </code></pre>
  
  <p>Does anyone know the correct way of combining the <code>$_REQUEST</code> and <code>$x</code> variable?</p>