我正试图开发一个包含三个不同信息的登记页。
First Page will get contact details
Second page - working details
Third page - study details.
在张贴表格之前如何保留上页的形式数据?
我正试图开发一个包含三个不同信息的登记页。
First Page will get contact details
Second page - working details
Third page - study details.
在张贴表格之前如何保留上页的形式数据?
您请查看,它应当能够做你需要的事情。
You could do it with Ajax - multiple divs and hide/show the appropriate ones. Or you could POST each page and save the data in the $_SESSION global variable until all pages are complete. Then save it all to the database.
虽然其他答案肯定是好的想法,但你可能也想考虑在每一页之间把中间数据保留给你的数据库。 因此,提交第一页将产生新行,而有关联系细节的栏目是人满为患,而地位栏则显示提交书尚未完成。
第二页将更新数据库中的这一记录。 第三页还将更新记录,并填写显示划界案的国旗。
这方面的主要好处是,用户可在第一(或第二)页后走,然后返回,即使他关闭了浏览器,他的会议也已经过期。 (只要他有独一无二的URL返回)。
如果你只收集了三页数据,那么这种做法可能不会带来很多好处,但如果你有多页,以后离开和返回的能力可能更为重要。
在转向另一页时,你只是将第一页的数值在届会中变数,然后,你就可以在任何网页上查阅上页的价值,然后将价值贴在数据库查询上。 这样,你们就可以在浏览器开放之前使用第一页的价值。 随着浏览器的关闭,变数损失了他们的价值。
当天,我将在随后的每页上把所有前几页的暗藏地放到一起,这样,最后的提交将会有所有东西。
现在,我可能只有一页实际,采取多种步骤,显示/记录四,以一大形式收集所有数据,视而不见用户......,如果我感到特别危险,则经常通过分析进行验证和最后提交。
I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....
I have a div <div id="masterdiv"> which has several child <div>s. Example: <div id="masterdiv"> <div id="childdiv1" /> <div id="childdiv2" /> <div id="...
I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...
<form><input type="file" name="first" onchange="jsFunction(2);"> <input type="file" name="second" onchange="jsFunction(3);"</form> Possible to pass just numbers to the js ...
So I ve got a menu with a hover/selected state and it loads fine in IE6/IE7. However when I scroll down the page and put the element outside of the viewport and then back in I get a broken image! I ...
I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...
Is it possible to reload a form after file-input change? I have a form where the user can chose an image for upload. I also have a php script which displays that image resized. I only wonder if it ...
I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!