How to get array parameters from URL?
<p>I have a form with 4 required inputs. They are being passed into the url if they are missing.</p>

<p>If all 4 is missing it'll look like:</p>

<p><code>?required[0]=field_name&amp;required[1]=field_email&amp;required[2]=field_number&amp;required[3]=field_desc</code></p>

<p>If the first one <code>field_name</code> is missing, the array will be pushed forward one, so <code>field_email</code> will be [0]. Which means that the array is always in the 0,1,2,3 order.</p>

<p>What I want to find out is how can I retrieve the information so I can put a red border around the input that is missing? What I need is something like:</p>

<pre><code>while ($i=0,$i&lt;=3,$i++) {
    do ($requiredArray[i] == 'field_email') {
        echo '&lt;script type="text/javascript"&gt;$("#name)".css("border","1px solid #ff0000");&lt;/script&gt;';
    } while ();
    endwhile;
}
</code></pre>
