473,657 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stopping user from pasting into a text box

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
Dec 21 '05 #1
12 1977
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?

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.
Dec 21 '05 #2
"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.


Preventing copy paste, if possible, is a no no.

You can make the second box 2 boxes, and put an @ in the middle 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.

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 me.

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/
Dec 21 '05 #3
John Bokma wrote
"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.
Preventing copy paste, if possible, is a no no.

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

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

me.

I usually retype it. I want to be sure myself that it's right!

--
Charles Sweeney
http://CharlesSweeney.com
Dec 21 '05 #4
Charles Sweeney <me@charlesswee ney.com> wrote:
John Bokma wrote
"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.


Preventing copy paste, if possible, is a no no.

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

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.


Thanks :-)
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

me.

I usually retype it. I want to be sure myself that it's right!


IIRC you only accept a few things in front of the @ ? I still accept
anything, because I often invent email addresses (well, the part in front
of the @) to track stuff.

--
John MexIT: http://johnbokma.com/mexit/
personal page: http://johnbokma.com/
Experienced programmer available: http://castleamber.com/
Happy Customers: http://castleamber.com/testimonials.html
Dec 21 '05 #5
John Bokma wrote
Charles Sweeney <me@charlesswee ney.com> wrote:
I usually retype it. I want to be sure myself that it's right!


IIRC you only accept a few things in front of the @ ? I still accept
anything, because I often invent email addresses (well, the part in
front of the @) to track stuff.


I accept everything too. I retype it to make sure the whole thing is
correct. One can't rule-out a typo!

--
Charles Sweeney
http://CharlesSweeney.com
Dec 21 '05 #6
Charles Sweeney <me@charlesswee ney.com> wrote:
John Bokma wrote
Charles Sweeney <me@charlesswee ney.com> wrote:
I usually retype it. I want to be sure myself that it's right!


IIRC you only accept a few things in front of the @ ? I still accept
anything, because I often invent email addresses (well, the part in
front of the @) to track stuff.


I accept everything too. I retype it to make sure the whole thing is
correct. One can't rule-out a typo!


True, and it wouldn't be the first time it happens to me. Oh, I also copy
and paste the password, which is probably worse since there is no real
feedback (other then *******).

--
John Perl SEO tools: http://johnbokma.com/perl/
or have them custom made
Experienced (web) developer: http://castleamber.com/
Dec 21 '05 #7
ned

"Astra" <No@Spam.com> wrote in message
news:11******** *****@corp.supe rnews.com...
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?


......... I hope not, because I never type my e-mail address at any
time!
I have it permanently stored so that it is a two key copy every
time, - like a stored signature.

--
ned

http://www.bugsandweeds.co.uk
last update 12.12.2005
Dec 21 '05 #8
you can change a boolean called editable that afects whether they can
write in it or not

Dec 21 '05 #9
John Bokma wrote:
Charles Sweeney <me@charlesswee ney.com> wrote:
John Bokma wrote
Charles Sweeney <me@charlesswee ney.com> wrote:
I usually retype it. I want to be sure myself that it's right!

IIRC you only accept a few things in front of the @ ? I still accept
anything, because I often invent email addresses (well, the part in
front of the @) to track stuff.


I accept everything too. I retype it to make sure the whole thing is
correct. One can't rule-out a typo!


True, and it wouldn't be the first time it happens to me. Oh, I also
copy and paste the password, which is probably worse since there is no
real feedback (other then *******).


I was configuring some software yesterday and was asked if I wanted
passwords to be represented by 1. one asterisk per character, 2. three
asterisks per character, or 3. nothing. I'd never run across such a
choice anywhere.
--
Blinky
Killfiling all posts from Google Groups
http://blinkynet.net/comp/uip5.html

Dec 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4957
by: RelaxoRy | last post by:
Is there any way to stop someone getting their mouse and selecting text on a page (without making the text an image of course). Is it possible to trap and stop click-and-drag functionality from the mouse? Bit of a stranger request but can it be done? :) Cheers Ryan
4
2189
by: Jason Cowsill | last post by:
Hi - I am looking for a way to dynamically alter a textbox WHILE the user is typing in it. One example would be while a user is entering their phone number a dash would be entered automatically as soon as the user types the third digit - the fourth digit would then follow the dash. I've seen this done on several sites now. I know it can be done once the user leaves the textbox with a postback, but I would like to try to accomplish it...
1
3791
by: Grant Smith | last post by:
I've got an application that I can copy some text out of the RichTextBox control. I would like to keep the formatting so I'm able to copy it to the Clipboard with RTF formatting. I have no trouble pasting the formatted text into wordpad (which supports RTF formatting) but it won't paste into notepad (no RTF support). I know that if I copy something in wordpad with RTF formatting and then paste it into notepad the text will paste. What...
6
2977
by: =?Utf-8?B?VmVybm9uIFBlcHBlcnM=?= | last post by:
I have an application that is designed for using with a bar code scanner. I want the user to know that the scan was complete and the data was entered, so I am playing a system sound after data entry. The data is being put into a text box, and a Return is sent after the data. I use the keypress event to capture the Return, and save the data. Then, I play the system sound, clear the text box, and set the focus back to the text box for the...
14
13377
by: > Adrian | last post by:
Is there a way of stopping text from highlighting in textbox? Many thanks, Adrian.
5
6857
by: exhuma.twn | last post by:
As many might know, windows allows to copy an image into the clipboard by pressing the "Print Screen" button on the keyboard. Is it possible to paste such an image from the clipboard into a "Text" widget in Tkinter? Here is my first attempt with just trying to print out the image data: ----------------- def pasteImg(tgt): global clipboardEnabled if not clipboardEnabled: return
0
1458
by: eldamiani | last post by:
Ineed a help. I want to ask, how I can do dialog box window which is a normal form, but causes stopping the code execution in form which call out this dialog box. I have MessageBox.Show("Operations"); FormDialog frm = new FormDialog(); frm.Show() //not ShowDialog() //now the code should be stopping, but i don't know how. MessageBox.Show("Operations"); I need something such as "ReadLine()" in console application, which is...
5
1735
by: bshul | last post by:
Hi, I am hoping someone knows how to finish this javascript. The script copies selected text to the windows clipboard from, for instance, a webpage. This text is a phone number. It then executes the windows phone dialer program. The cursor flashes in the dialer's input area. I need some more script that can focus on that area or cursor position and paste the phone number there. Right now a CTRL-V works, but I want it automated in script. It...
7
1428
by: nelsonbrodyk | last post by:
Hey All, I am trying to make a textbox that will only allow alphanumeric values. I accomplished this by using the key pressed event, and validating the character against a regex and saying that the character is handled if the character does not match a regex. This works great, but it breaks in one case: Pasting into the text box. How can I accomplish my goal of stopping invalid pasting into the textbox as well? I have been trying to use the...
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1607
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.