Автор Тема: a little hard test  (Прочитано 1643 раз)

0 Пользователей и 1 Гость просматривают эту тему.

  • Гость
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

Оффлайн AliMamed

  • \\o/ ali akbar \\o/
  • Глобальный модератор
  • Ветеран
  • *****
  • Сообщений: 2409
  • +2/-0
  • 2
    • Просмотр профиля
    • http://alimamed.pp.ru
a little hard test
« Ответ #1 : 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;
}
ну, будем исповедоваться?

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28