so i will describe my problem as best i can, i'm certain is very simple, i'm just missing a key point or something. So i am making an application that makes quizzes. so the user enters in their question, and then enter's in 4 answers and chooses the correct answer from a set of radio buttons named answer[]
if there are multiple questions (witch there always will be... cause its a quizz) then all the radio buttons have the same answer[] name and thus you can only select 1 radio button across all of the questions when i need to select 1 radio button per question. So i fixed this by incrementing a number for each question. so if their are 4 questions posted, the will output will have answer0[], answer1[], answer2[], answer3[].
now those numbers are sync'ed up with a php while loop increment.
MY PROBLEM
I need to dynamically make variable $answer0[], 1, 2, 3 by putting the $i variable in their somewhere so that i can insert it into a mysql db. from what i understand you can do this using http://www.php.net/manual/en/language.v ... riable.php but i can't figure it out.
Can anybody give me any insight? Please ask questions if you dont understand so i can try and explian it better. Thanks!