Программирование => PHP => Тема начата: от 06 Мая 2002, 19:53:49
Название: a little hard test
Отправлено: от 06 Мая 2002, 19:53:49
Hello All. I would like to ask your help to solve the problem i have with test i wrote in php. i reached the last part of it where i have to count score. i have 23 radio buttons and 23 checkboxes with different values like a: question1 question2 question3 .......etc etc etc in this case how can i make working counter++?? I would be very thankful if you give me a key to solve this problem i faced with. Thank you in advance
Название: a little hard test
Отправлено: AliMamed от 06 Мая 2002, 20:28:37
this is not checkboxes. this is radiobuttons.
you need to make html like question1 question2 question3
and it will return an array $radiobutton1 which you can parse with something like that:
$counter=0; foreach($radiobutton1 as $radiovalue){ $counter +=$radiovalue; }