脏表格错误陷阱? [英] Dirty Form Error Trapping?

查看:91
本文介绍了脏表格错误陷阱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候,


我偶尔会有一个php / mysql dabbler。


我有一个带提交按钮的基本数据表单。不幸的是,用户可以输入数据更改并关闭窗口,但是没有点击提交按钮就可以获得
,从而丢失数据。


有人能指出一些代码的通用示例,它会陷入

并处理此错误吗?

Greetings,

I''m an occasional php/mysql dabbler.

I have a basic data form with a submit button. Unfortunately, it''s still
possible for the user to enter data changes and close the window,
without clicking the submit button, thus losing the data.

Can someone point me to a generic example of some code that will trap
and handle this error?

推荐答案

" Fester Bestertester" < wh ********* @ mad.netwrote in message

news:ff ********** @ gondor.sdsu.edu ...
"Fester Bestertester" <wh*********@mad.netwrote in message
news:ff**********@gondor.sdsu.edu...

问候,


我偶尔会有php / mysql dabbler。


我有一个带有提交按钮的基本数据表单。不幸的是,用户可以输入数据更改并关闭窗口,但是没有点击提交按钮就可以获得
,从而丢失数据。


有人能指出一些代码的通用示例,它会捕获

并处理此错误吗?
Greetings,

I''m an occasional php/mysql dabbler.

I have a basic data form with a submit button. Unfortunately, it''s still
possible for the user to enter data changes and close the window,
without clicking the submit button, thus losing the data.

Can someone point me to a generic example of some code that will trap
and handle this error?



用户选择关闭窗口的错误是什么?


是否为关闭窗口 提交表格旁边的按钮按钮?

How is the user''s choice of closing the window an error?

Is a "Close Window" button next to the "Submit Form" button?


Fester Bestertester写道:
Fester Bestertester wrote:

问候,


我偶尔会使用php / mysql dabbler。


我有一个带提交按钮的基本数据表单。不幸的是,用户可以输入数据更改并关闭窗口,但是没有点击提交按钮就可以获得
,从而丢失数据。


有人能指出一些代码的通用示例,这些代码将陷入

并处理此错误吗?
Greetings,

I''m an occasional php/mysql dabbler.

I have a basic data form with a submit button. Unfortunately, it''s still
possible for the user to enter data changes and close the window,
without clicking the submit button, thus losing the data.

Can someone point me to a generic example of some code that will trap
and handle this error?



不。您无法在PHP(服务器端)中执行任何操作来阻止用户执行客户端功能,例如关闭

窗口。


但这也不应被视为错误。它应该是

被认为是正常操作,你的脚本应该很好地处理它。


-

===== =============

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================

Nope. There is nothing you can do in PHP (which is server side) to
prevent the user from performing client-side functions such as closing a
window.

But that also should not be considered an error. It should be
considered normal operation, and your script should handle it nicely.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


McKirahan写道:
McKirahan wrote:

用户选择关闭窗口的错误是什么?


是一个关闭窗口 提交表格旁边的按钮按钮?
How is the user''s choice of closing the window an error?

Is a "Close Window" button next to the "Submit Form" button?



感谢您的回复。没有关闭窗口按钮。我认为只是

a向用户明确表示这个网络数据库应用程序就像

任何其他工具一样,即如果你去你的银行'的网站,登录,并设置一个

的交易来转移一些资金,但你不要点击提交

按钮而只是关闭窗口,你的交易没有完成。这不应该太难处理。

Thanks for replying. There is no Close Window button. I think it''s just
a matter of making it clear to the users that this web db app works like
any other, i.e., if you go to your bank''s web site, log on, and set up a
transaction to transfer some funds, but you don''t click the "Commit"
button and instead just close the window, your transaction is not
completed. That shouldn''t be too hard to handle.


这篇关于脏表格错误陷阱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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