PHP Looping....need some advice
<p>I have the following code:</p>

<pre><code>$q1 = $_POST["q1"];
$q2 = $_POST["q2"];
$q3 = $_POST["q3"];
$q4 = $_POST["q4"];
$q5 = $_POST["q5"];
$q6 = $_POST["q6"];
$q7 = $_POST["q7"];
$q8 = $_POST["q8"];
</code></pre>

<p>At the moment, this is hard coded and I need to manually change it each time, I'd like to use variables instead so that it's not a manual process.</p>

<p>Is it a case of using a loop, while or foreach?</p>

<p>If I had the the information $q and q in an array would that help?</p>

<p>Thanks,</p>

<p>Homer.</p>
