I know I'm doing something simple incorrectly here, but please tell me what's wrong with the following loop where I'm trying to retrieve the variables from a form where all of the form variables are named q1 through q3:
Code:
<?
for ($i=1; $i<=3; $i++){
$q.$i = $_POST['q.$i'];
echo "$q.$i <br>";
}
?>