清除“表单提交”缓存:怎么样? [英] Clearing the "form submit" cache: how?

查看:126
本文介绍了清除“表单提交”缓存:怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况:用户提交表单,返回页面。用户点击

重新加载按钮。


正常结果:浏览器要求确认重新提交表格

数据。


这不是我想要的。我想要的是像Wikipedia

那样的行为,以及vBulletin论坛和其他不错的基于php的网站:


情况:用户提交表单,获取页面返回。用户单击

重新加载按钮。


所需结果:当前页面只是重新加载而用户不是

要求确认重新提交表格数据。表格数据

不会重新提交。


这可能不是一个php问题,但我倾向于注意到这个问题

网站因为我的php网站没有表现出这种行为,我想要

它。我如何做到这一点?


-A

Situation: User submits a form, gets a page returned. User clicks
the "reload button."

Normal result: Browser asks to confirm re-submitting of the form
data.

That''s not what I want. What I want is behavior like what Wikipedia
does, as well as vBulletin forums and other nice php-based sites:

Situation: User submits a form, gets a page returned. User clicks
the "reload button."

Desired Result: The current page simply re-loads and the user isn''t
asked to confirm re-submission of the form data. The form data
isn''t re-submitted.

This may not be a php problem, but I tend to notice this on php
sites because my php site doesn''t exhibit this behavior, and I want
it to. How do I accomplish this?

-A

推荐答案

11月17日晚上9:56, a ... @ spamcop.net(axlq)写道:
On Nov 17, 9:56 pm, a...@spamcop.net (axlq) wrote:

情况:用户提交表单,返回页面。用户点击

重新加载按钮。


正常结果:浏览器要求确认重新提交表格

数据。


这不是我想要的。我想要的是像Wikipedia

那样的行为,以及vBulletin论坛和其他不错的基于php的网站:


情况:用户提交表单,获取页面返回。用户单击

重新加载按钮。


所需结果:当前页面只是重新加载而用户不是

要求确认重新提交表格数据。表格数据

不会重新提交。


这可能不是一个php问题,但我倾向于注意到这个问题

网站因为我的php网站没有表现出这种行为,我想要

它。我该如何做到这一点?


-A
Situation: User submits a form, gets a page returned. User clicks
the "reload button."

Normal result: Browser asks to confirm re-submitting of the form
data.

That''s not what I want. What I want is behavior like what Wikipedia
does, as well as vBulletin forums and other nice php-based sites:

Situation: User submits a form, gets a page returned. User clicks
the "reload button."

Desired Result: The current page simply re-loads and the user isn''t
asked to confirm re-submission of the form data. The form data
isn''t re-submitted.

This may not be a php problem, but I tend to notice this on php
sites because my php site doesn''t exhibit this behavior, and I want
it to. How do I accomplish this?

-A



这个问题已经在这个问题上被多次询问和回答了>
新闻组。通过一点搜索,您应该能够找到

它。

This question has been asked and answered many times in this
newsgroup. With a little bit of searching you should be able to find
it.


在文章< ae ******** **************************@e1g2000hsh.g ooglegroups.com>,

ZeldorBlat< ze *** *****@gmail.com写道:
In article <ae**********************************@e1g2000hsh.g ooglegroups.com>,
ZeldorBlat <ze********@gmail.comwrote:

> 11月17日晚上9:56,a ... @ spamcop.net(axlq)写道:
>On Nov 17, 9:56 pm, a...@spamcop.net (axlq) wrote:

>所需结果:当前页面只是重新加载,并且用户不会被要求确认重新提交表单数据。表格数据
不会重新提交。
>Desired Result: The current page simply re-loads and the user isn''t
asked to confirm re-submission of the form data. The form data
isn''t re-submitted.


此新闻组已多次询问和回答此问题。


This question has been asked and answered many times in this newsgroup.



不,不是真的,据我所知。

No, not really, as far as I can tell.


>稍微有点搜索你应该能够找到它。
>With a little bit of searching you should be able to find it.



也许我在搜索中使用了错误的术语。所有我发现

是关于表格数据丢失的文章,而不是故意丢失

它。


-A

Perhaps I am using the wrong terminology in my search. All I find
are articles about form data being lost, not on intentionally losing
it.

-A


11月17日晚上10点42分,a ... @ spamcop.net(axlq)写道:
On Nov 17, 10:42 pm, a...@spamcop.net (axlq) wrote:

在文章< ae57203b-6781-4068-b1b6-9317e3549 ... @ e1g2000hsh.googlegroups.com>,


ZeldorBlat< zeldorb ... @ gmail.comwrote:
In article <ae57203b-6781-4068-b1b6-9317e3549...@e1g2000hsh.googlegroups.com>,

ZeldorBlat <zeldorb...@gmail.comwrote:

通过一些搜索,您应该能够找到它。
With a little bit of searching you should be able to find it.



也许我在搜索中使用了错误的术语。所有我发现

是关于表格数据丢失的文章,而不是故意丢失

它。


-A


Perhaps I am using the wrong terminology in my search. All I find
are articles about form data being lost, not on intentionally losing
it.

-A



也许是形成双重帖子或形式双提交或会工作吗?

Perhaps "form double post" or "form double submission" would work?


这篇关于清除“表单提交”缓存:怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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