三个网页一起提交 [英] Three web pages submission together

查看:114
本文介绍了三个网页一起提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含三页的表单。前两页有下一个按钮,导航到下一页....

,第三页有提交按钮。

点击提交按钮后,所有信息写在所有三个页面将被提交到服务器并保存在数据库....

所以....基本问题是一个页面中的一个提交按钮保存三页的信息。

逻辑背后的男女同志是什么?

使用viewstate?或者是其他东西 ??

如果可能的话,提供代码

谢谢你

I have a form containing three pages. first two pages have next button which navigate to the next pages ....
and the third page has the submit button.
after clicking the submit button, all the information written in all the three pages will be submitted to the server and be saved in database ....
so .... the basic problem is one submit button in one page save the info of three pages.
what is the coed behind logic for this ??
using viewstate ?? or something else ??
if possible, provide a code
thank u

推荐答案

你只点击一个按钮,右边?如果这是一个提交按钮,它应该是某种形式,对吗?它只会为父表单发送一个HTTP帖子,对吧?所以,你需要将所有三种形式放在一起。这不合逻辑吗?



这种逻辑HTTP结构与表单的可视化表示无关。从视觉上看,它们可以看作三种不同的形式。它看起来和工作完全符合您的要求。



或者,您可以根本不工作;然后你需要使用Ajax。



-SA
You are clicking on just one button, right? If this is a submit button, it should be in some form, right? It will send an HTTP post only for the parent form, right? So, you need to put all three forms together. Isn''t this logical?

This logical HTTP structure has nothing to do with visual presentation of forms. Visually, they can look as three separate forms. It will look and work exactly as you want.

Optionally, you may work without forms at all; then you would need to use Ajax.

—SA


这篇关于三个网页一起提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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