Unable to get request parameters in php
<p>I am using the following code to get data from <code>$_REQUEST</code> in php:</p>

<pre><code>for($i=0;$i&lt;intval($q);$i++)
    {
       $construct="'".$i."'";
       echo $construct;
       $p=$_REQUEST[$construct];
       echo $p;

    }
</code></pre>

<p>where '0','1',... so on have values. But for some reason it does not work. However if I replace it by $_REQUEST['0'] it seems to print the value fine. Any ideas what I am doing wrong?</p>
