Hi I have the following:
$q1 = $_POST["q2"];
$q2 = $_POST["q2"];
$q2 = $_POST["q2"];
What I'd like to do is put this within a For loop, as follows:
for ($i=1; $i<=3; $i++){
$q1 = $_POST["q".$i.""];
}
I can add the variable to the POST part no problems but I cannot work out how to have the 1 next to the $q as a variable:
$q1 = $_POST["q".$i.""];
I'm sure it's simple but I cannot fathom it!
$_POST["q".$i]