多份注册表 [英] multple registration form

查看:74
本文介绍了多份注册表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好
我想在两页中创建倍数注册表格.在第三页上,我希望该用户查看他输入的数据.有人可以告诉我怎么可能吗?

hello
i want to create multiples registration form in two pages. at the third page i want that user review his enterd data. can somebody tells me how is it possible?

推荐答案

将在每个页面上输入的数据保存到当前会话(或cookie)中,并在加载最终版本时读取页面.
Cookie的优点是在断开连接时它是持久性的.
Save the data entered on each page into the Current Session (or a cookie) and read it when you load the final page.
A cookie has the advantage that it is persistent in the event of a disconnection.


有很多方法可以实现此目的;

http://msdn.microsoft.com/en-us/magazine/cc300437.aspx [ ^ ]


如果您想要简单又好用的方法.
尝试会话,如果没有,则尝试cookie,然后尝试viewstate,然后再执行url查询字符串.
*只需参加会议.

如果您精通php或jsp和html表单
将第一页表单的动作属性编辑为2ndpage.aspx,并在第二页代码中,在加载事件处理程序之后,使用请求对象从第一注册表单中获取包含值的POST数据.现在,将这些值写入隐藏的输入html元素或任何隐藏的文本框(执行类似操作以保存数据).现在,将第二页表单的action属性编辑为3rdpage.aspx,然后仅在第三页上向用户显示来自隐藏文本框的所有数据和第二页注册表单的字段中的数据.
* U可以使用jquery serializetoarray或将您的表单数据转换为json(适用于GOOGLE)将数据转换为更有条理的方式,这将帮助您更轻松地将数据保存在隐藏字段或隐藏文本框中.这是可选建议.


希望我能解决您的问题.
There are a number of ways to achieve this;

http://msdn.microsoft.com/en-us/magazine/cc300437.aspx[^]


If you want it the easy and good way.
Try sessions and if not then cookies then viewstate and then url querystrings.
* Just go with sessions.

If you are well versed with php or jsp and html forms
Edit the 1st page form''s action attribute to 2ndpage.aspx and in the 2nd page codebehind load event handler use the request object to get the POST data containing the values from the 1st registration form. Now write these values to hidden input html element or any hidden text box (do anything like this to preserver the data). Now edit the 2nd page form''s action attribute to 3rdpage.aspx and just show all the data from the hidden textbox and the data from the fields of the 2nd page registration form to the user on this third page.
*U can use jquery serializetoarray or transform your your form data to json (GOOGLE for it) to convert your data to a more organized way which will help you save the data in the hidden field or hidden textbox more easily. This is an optional advice.


I hope I was able to solve your problem.
Watch my first article posted on codeproject and comment and vote:
http://www.codeproject.com/KB/HTML/speechinputapi.aspx
or http://blog.robinrizvi.info

Drop me a mail for any comments, suggestions or questions.


这篇关于多份注册表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆