在CodeIgniter,PHP,JQuery或其他任何版本中构建多种形式 [英] Building multiple forms in CodeIgniter, PHP, JQuery or whatever
问题描述
大家好.我需要你的帮助.
好吧,目前我正在CodeIgniter Framework中构建一些项目.接下来,我需要做的是:我需要构建这样一种表单,该表单逐步执行,一步到另一步.我需要使用该表单将数据插入数据库.
我想创建逐步实现的向导.例如让我们尝试用高中的例子来解释这个问题.
首先,我需要在数据库中输入学校,其次是课程.在插入课程之前,我想问用户他想要插入多少门课程以及要开什么学校(这些变量的值存储在会话中).例如,如果他输入3门课程,则下一步是他将数据输入数据库的3种形式. 但是我真正需要的是这些表格必须逐步进行,而不像其他表格那样.首先显示一个表格输入课程名称,然后当用户输入一个课程时,下一步是第二个表格,依此类推...
请帮我,因为我必须在Web应用程序中实现它.
非常感谢您...
Hi everyone. I need some help from you.
Well, Currently I''m building some project in CodeIgniter Framework. What I need is next: I need to build such a form which this form working by steps, one step to another. I need to insert data in to database with this form.
I would like to create wizard which is implement step by step. For example lets try to explain this problem with example of high school.
First I need to input school in the database, and second is courses. Before I insert courses, I would like to ask user how many courses he would like to insert and for what school (values for these variables are stored in sessions). If he enter, for example, 3 courses, next step is 3 forms by which he enter data in to database. But what exactly I need is those forms must be step by step, not like one below the other. First show up one form to enter a name of course, and when user enter one course, next step is second form an so on...
Please help me with this, because I must implement that in to my web application.
Thank you very much...
推荐答案
嘿,
虽然未实现,但这可以解决您的问题.
http://codeigniter.com/forums/viewthread/161913/ [
Hey,
Not implemented though but this can solve your problem.
http://codeigniter.com/forums/viewthread/161913/[^]
这篇关于在CodeIgniter,PHP,JQuery或其他任何版本中构建多种形式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!