PHP loop with specific $_REQUEST
<p>Is it possible to loop based on a specific variable name for a <code>$_REQUEST</code> for example:</p>

<pre><code>if (!$POST)
{
do something
}

else {

if ($_REQUEST['name1'])
{
do something
}
elseif ($_REQUEST['name2'])
{
do something
}

}
</code></pre>
