View Single Post
Old Dec 4th, 2006, 8:56 PM   #4
kworden
Newbie
 
Join Date: Dec 2006
Posts: 3
Rep Power: 0 kworden is on a distinguished road
I was able to solve the problem with:

[PHP]
for($i=1; $i<= $numberofgaquestions; $i++ ){
$varname = 'ga' . $i; //create name of variable as a string
echo "The # $i: ". $$varname ."<br>"; // notice $$
}
[/PHP]
kworden is offline   Reply With Quote