任何想法如何使用复选框制作动态问卷 [英] any idea how to make dynamic questionnaire using checkbox
问题描述
大家好,我是Web开发的新手,我需要帮助.
我想使用php建立动态问卷调查复选框.
关于如何做的任何想法?
应该是这样的.
首先我们有:
-checkbox a
-checkbox b
如果选中了复选框a.复选框d和复选框f将会出现.
-checkbox d
-checkbox f
如果选中了复选框b.复选框c和复选框e将会出现.
-checkbox c
-checkbox e
更多,如果选中了复选框d.复选框h和j将出现.
表示该复选框会不断添加到页面中.
因此,选中复选框h后,我们将得到:
-checkbox a(已选中)
-checkbox b
-checkbox d(选中)
-checkbox f
-checkbox h(已选中)
-checkbox j
-更多复选框或提交
-
我必须使用ajax吗?还是普通的php可以做到?
hi all, i am new to web development and i need help.
i want to build a dynamic questionnaire check box using php.
any idea about how to do it?
it should be like this.
first we have :
-checkbox a
-checkbox b
if checkbox a is checked. checkbox d and checkbox f will appear.
-checkbox d
-checkbox f
if checkbox b is checked. checkbox c and checkbox e will appear.
-checkbox c
-checkbox e
more, if checkbox d is checked. checkbox h and check j will appear.
meaning the checkbox keep adding to the page.
so after checked checkbox h we will have:
-checkbox a (checked)
-checkbox b
-checkbox d (checked)
-checkbox f
-checkbox h (checked)
-checkbox j
-more checkbox or submit
-
must i use ajax? or plain php can done it?
推荐答案
想法?检查这些:
http://www.webresourcesdepot.com/ajaxed-php-library-for-creating -quizzes-quizzy/ [ ^ ]
http://www.sourcecodeonline.com/list?q=ajax_quiz [
Idea? Check these:
http://www.webresourcesdepot.com/ajaxed-php-library-for-creating-quizzes-quizzy/[^]
http://www.sourcecodeonline.com/list?q=ajax_quiz[^]
To achieve above functionality you need to build own conditions...
这篇关于任何想法如何使用复选框制作动态问卷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!