Use POST variables without calling them specifically
<p>All,
I have a form that has some text inputs, checkboxes, select box and a textarea. I want to submit the form with PHP using a submit button to a page for processing.</p>

<p>That part is fine but what I would like to do is basically get the results into an array so I can do a foreach loop to process the results.</p>

<p>Basically I'm trying to create a dynamic form the submits to my backend processing script and don't want to hard code in the post values like the following:</p>

<pre><code>$var1 = $_POST['var1'];
echo $var1;
$var2 = $_POST['var2'];
echo $var2;
</code></pre>

<p>Does anyone know how to go about doing something like this or give any recommendations?</p>
