I want to pass some variables named a1, a2...aX in a form. So I wrote a couple of lines to do the trick: for($i=1;$i<=$X;$i++) { echo "<input type=\"hidden\" name=\"q$i\" value=\"$q$i\">\n"; } But there is just one problem. How do I pass the correct value? This is what I want the loop to do: echo "<input type=\"hidden\" name=\"q1\" value=\"$q1\">\n"; echo "<input type=\"hidden\" name=\"q2\" value=\"$q2\">\n"; ........... ........... So I want to make the variables $q1 .. $qX from q$i Is this possible and if so, how? Thanks for your support, Marcel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php