Добро пожаловать,
Гость
. Пожалуйста,
войдите
или
зарегистрируйтесь
.
Не получили
письмо с кодом активации
?
1 час
1 день
1 неделя
1 месяц
Навсегда
Новости:
Начало
Помощь
Поиск
Календарь
Вход
Регистрация
Forum Webscript.Ru
»
Программирование
»
PHP
»
a little hard test
« предыдущая тема
следующая тема »
Печать
Страницы: [
1
]
Вниз
Автор
Тема: 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
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;
}
Записан
ну, будем исповедоваться?
Печать
Страницы: [
1
]
Вверх
« предыдущая тема
следующая тема »
Forum Webscript.Ru
»
Программирование
»
PHP
»
a little hard test
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