PHP& Javascript精神错乱 [英] PHP & Javascript insanity

查看:89
本文介绍了PHP& Javascript精神错乱的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我现在已经和它斗争了一天,并希望得到一些帮助。


我正在努力:
http://www.webaccessstrategies.com/c...enewalform.php

由于表单的大小,用户在提交按钮上获得了一点触发 -




我''找到了一种方法来禁用提交按钮,但现在我有一个问题

我的服务器端验证。


表单提交给自己根据是否确定

$ _REQUEST [''submit'']进行验证。


问题是现在我有javascript in要禁用

按钮的地方,$ _REQUEST [''submit'']永远不会被设置。


TIA有关导致此问题的任何指导。


-

Karl Groves
http://karlcore.com
http ://chevelle.karlcore.com

解决方案

_REQUEST [''submit''] isset。

问题是,现在我已经使用javascript来禁用

按钮,


_REQUEST [''submit'']是永远不会被设定。


TIA有关导致此问题的任何指导。


-

Karl Groves
http://karlcore.com
http://chevelle.karlcore.com


12 / 04/2006 14:54,Karl Groves写道:

我正在研究:
http://www.we baccessstrategies.com/c...enewalform.php
由于表单的大小,用户对提交按钮感到有点兴奋。


我并不感到惊讶。这太棒了!我建议的第一件事是

将其分解成各个部分,并允许用户在它们之间移动。

表格很大,也可能是有利于允许用户

将其保存在部分状态,然后重新登录以便以后恢复。

我找到了一种禁用提交的方法按钮,[...]


我建议你再次失去它:它对可用性不利。考虑

如果用户在提交时出现问题会发生什么情况并点击后面

按钮再试一次。你怎么建议他们重新提交?


[snip]

问题是现在我已经有了javascript来禁用
按钮,

So, I''ve been fighting with this for a day now and would love some help.

I am working on:
http://www.webaccessstrategies.com/c...enewalform.php
Because of the size of the form, users have been getting a bit trigger-
happy on the submit button.

I''ve found a method to disable the submit button, but now I have a problem
with my server-side validation.

The form submits to itself to do validation based on whether or not
$_REQUEST[''submit''] isset.

The problem is that now that I have the javascript in place to disable the
button, $_REQUEST[''submit''] is never getting set.

TIA for any guidance on what is causing this.

--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com

解决方案

_REQUEST[''submit''] isset.

The problem is that now that I have the javascript in place to disable the
button,


_REQUEST[''submit''] is never getting set.

TIA for any guidance on what is causing this.

--
Karl Groves
http://karlcore.com
http://chevelle.karlcore.com


On 12/04/2006 14:54, Karl Groves wrote:

I am working on:
http://www.webaccessstrategies.com/c...enewalform.php
Because of the size of the form, users have been getting a bit trigger-
happy on the submit button.
I''m not surprised. It''s enormous! The first thing I''d suggest is
breaking it down into sections, and allow the user to move between them.
With a form that large, it might also be beneficial to allow the user to
save it in a partial state then log back in to resume at a later date.
I''ve found a method to disable the submit button, [...]
I suggest that you lose it again: it''s not good for usability. Consider
what happens if the user has problems submitting and hits the back
button to try again. How do you propose they resubmit?

[snip]
The problem is that now that I have the javascript in place to disable the
button,


这篇关于PHP& Javascript精神错乱的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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