阻止用户粘贴到文本框中 [英] Stopping user from pasting into a text box

查看:70
本文介绍了阻止用户粘贴到文本框中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我知道这可能听起来很奇怪,但我有一个表格,我要求用户

在一个文本中输入他们的电子邮件地址框,然后再在确认电子邮件中

文本框,以确保他们已正确输入。


我的问题是许多用户似乎键入他们的电子邮件地址在

第一个框中,然后将其复制并粘贴到第二个框中。


如果他们第一次输错了那么他们所做的一切

确认这是错误的。


无论如何,我可以阻止他们粘贴到确认电子邮件文本框中

所以他们必须打两次?


谢谢


罗比

Hi All

I know this might sound weird, but I have a form where I ask the user to
enter their email address in one text box and then again in a confirm email
text box to make sure that they have entered it correctly.

My problem is that many users appear to type their email address in the
first box and then copy and paste it into the 2nd box.

If they typed it incorrectly the first time then all they have done is
confirmed that it is wrong.

Is there anyway that I can stop them pasting into the confirm email text box
so that they have to type it twice?

Thanks

Robbie

推荐答案

Astra写道:
Astra wrote:
大家好

我知道这可能听起来很奇怪,但我有一个表格,我问用户
在一个文本框中输入他们的电子邮件地址,然后再次输入确认电子邮件文本框以确保他们已正确输入

我的问题是很多用户似乎在第一次输入他们的电子邮件地址然后将它复制并粘贴到第二个框中。

如果他们第一次输入错误,那么他们所做的就是确认它是错误的。
Hi All

I know this might sound weird, but I have a form where I ask the user
to enter their email address in one text box and then again in a
confirm email text box to make sure that they have entered it
correctly.

My problem is that many users appear to type their email address in
the first box and then copy and paste it into the 2nd box.

If they typed it incorrectly the first time then all they have done is
confirmed that it is wrong.

Is there anyway that I can stop them pasting into the confirm email
text box so that they have to type it twice?



您可以将第二个框放到提交

原始表格的回复页面。这样你的用户就不知道他们必须输入

的第二份副本,直到复制原件为时已晚,但Google的用户自动填写了b
只需点击一下即可重复上传。


如果您将其视为确认接受T& C的请求,您可能会设置为b

$ b它们太多了。


或者只需使用电子邮件地址的单个副本发送一封

的电子邮件,用户必须回复该电子邮件以确认其详细信息。在你可以信任他们输入的电子邮件之前,你必须这样做才能做到这一点

让他们输入一份副本并不是真的非常有用。


You could put the second box onto the response page from submitting the
original form. That way your users don''t know that they have to enter a
second copy until its too late to copy the original but users of Google''s
autofill can still repeat it with a single click.

If you mask it as a request for confirmation of acceptance of T&C you might
even manage to avoid irritating them too much.

Alternatively just use the single copy of the email address to send an
email which the user has to respond to to confirm their details. You''ll
have to do that anyway before you can trust the email they entered so
getting them to enter a duplicate isn''t actually very useful anyway.


" Astra" < No@Spam.com>写道:
"Astra" <No@Spam.com> wrote:
大家好

我知道这可能听起来很奇怪,但我有一个表格,我要求用户输入他们的电子邮件地址在一个文本框中,然后再在
确认电子邮件文本框中确保他们已正确输入

我的问题是许多用户似乎键入了他们的电子邮件在第一个框中输入,然后将其复制并粘贴到第二个框中。
Hi All

I know this might sound weird, but I have a form where I ask the user
to enter their email address in one text box and then again in a
confirm email text box to make sure that they have entered it
correctly.

My problem is that many users appear to type their email address in
the first box and then copy and paste it into the 2nd box.




如果可能的话,防止复制粘贴是不可以的。 />

您可以将第二个方框设为2个方框,然后在中间放一个@,并将它们放在

之间,然后让他们进入方框(2a)进入部分在

前面@,在第二个(2b)前面的部分。


我自己复制/粘贴,因为它如果我做错了,那就是我的问题,而不是

你的;-)你当然不应该削弱我的浏览器来纠正我。


-

John Perl SEO工具: http://johnbokma.com/perl/

或定制他们

有经验的(网络)开发人员: http:// castleamber.com/


John Bokma写道
John Bokma wrote
" Astra" < No@Spam.com>写道:
"Astra" <No@Spam.com> wrote:
大家好

我知道这可能听起来很奇怪,但我有一个表格,我要求用户输入他们的电子邮件地址在一个文本框中,然后再在
确认电子邮件文本框中确保他们已正确输入

我的问题是许多用户似乎键入了他们的电子邮件在第一个方框中输入,然后将其复制并粘贴到第二个方框中。
如果可能的话,防止复制粘贴是不行的。

你可以制作第二个方框2个盒子,并在它们之间放一个@中的
Hi All

I know this might sound weird, but I have a form where I ask the user
to enter their email address in one text box and then again in a
confirm email text box to make sure that they have entered it
correctly.

My problem is that many users appear to type their email address in
the first box and then copy and paste it into the 2nd box.
Preventing copy paste, if possible, is a no no.

You can make the second box 2 boxes, and put an @ in the middle



并要求他们进入方框(2a)进入@ b $ b前面的部分,并且在第二个(2b)之后的部分。


这听起来像是一个很好的解决方案。

我自己复制/粘贴,因为这是我的问题,如果我做错了,
不是你的;-)你当然不应该削弱我的浏览器来纠正


between them and ask them to enter in the box (2a) to enter the part in front of the @, and in the second one (2b) the part after it.
That sounds like a good solution to the guy''s problem.

I do the copy/paste myself, since it''s my problem if I do it wrong, not yours ;-) And you certainly shouldn''t cripple my browser to correct



我。


我通常会重新输入它。我想确定自己是对的!


-

Charles Sweeney
http://CharlesSweeney.com


这篇关于阻止用户粘贴到文本框中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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