0
Colleagues.
I have the following code:
$array = array("","A","B","C","D","E");
for($contar = 1; $contar <= 10; $contar++){
}
Each $count corresponds to the number of questions. Ex.: 1 = Who was born first. 2 = Who discovered Brazil...
I would like it to be as follows:
"Pergunta 1";
"A: <input type='radio' name='respostas[]' value='A'>";
"B: <input type='radio' name='respostas[]' value='B'>";
"C: <input type='radio' name='respostas[]' value='C'>";
....
"Pergunta 2";
"A: <input type='radio' name='respostas[]' value='A'>";
"B: <input type='radio' name='respostas[]' value='B'>";
"C: <input type='radio' name='respostas[]' value='C'>";
I’m kind of lost in the().
I didn’t understand very well, each question will have the whole alphabet of options?
– Igor Mello
Hello Igor. The alphabet goes from A to E. There will only be 5 answers. I will edit my question
– user24136