473,666 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form submission without "ENTER"

EBG
I have a simple email form on my site but getting screwy results because I
know alot of users are hitting "enter" instead of tab when doing the form.

When they hit enter the entire form is submitted whether it's finished or
not.

Is there an easy way to correct this?

My site only cares about IE.

the code for the submit button is......
<input type="submit" name="Send" value="Submit label order" size="25">

I think I read where if I get rid of naming the button (submit label
order)...that will take care of it?

I'm just a cool page user that saves to html....nothin' fancy.

THANKS kindly for any help with this.
Jul 20 '05 #1
8 2818
Quoth the raven EBG:
I have a simple email form on my site but getting screwy results
because I know alot of users are hitting "enter" instead of tab
when doing the form.

When they hit enter the entire form is submitted whether it's
finished or not.
If you have that many inexperienced visitors, try a "Please use Tab
key between fields" note at the top of the form.
Is there an easy way to correct this?
Your backend script should check if the form is complete, and if not,
return them to the page.

AFAIK, there is no way to stop the form from submitting when pressing
Enter. You could use some JavaScript to check for required fields not
being empty.
My site only cares about IE.


What about the other 20% ? Not good enough for your business?

<snip>

--
-bts
-This space intentionally left blank.
Jul 20 '05 #2
EBG wrote:
I have a simple email form on my site but getting screwy results because I
know alot of users are hitting "enter" instead of tab when doing the form.
Why would anyone be pressing enter instead of tab? Are they
expecting enter to take them to the next field, like tab would? I've
never seen anyone do that before.
When they hit enter the entire form is submitted whether it's finished or
not.
You should provide some server-side validation which will check that
all required fields have been provided. If not, return the form to the
user, asking them to complete it. After that, you can provide
javascript validation, which can prevent the entire form being submitted
and returned if there's an error. Do not skip the server side
validation, because javascript may be unsupported or disabled in some
browsers.

My site only cares about IE.


Well, that's a big mistake!

--
Lachlan Hunt
http://www.lachy.id.au/
la**********@la chy.id.au.updat e.virus.scanners

Remove .update.virus.s canners to email me,
NO SPAM and NO VIRUSES!!!
Jul 20 '05 #3
Quoth the raven Lachlan Hunt:
Why would anyone be pressing enter instead of tab? Are they expecting
enter to take them to the next field, like tab would? I've never seen
anyone do that before.


Old DOS-based (80x25 character) data input programs... ;-)

Most GUI users though are aware of the tab key, at least in my experience.

--
-bts
-This space intentionally left blank.
Jul 20 '05 #4
"Beauregard T. Shagnasty" <a.*********@ex ample.invalid> wrote:
Quoth the raven Lachlan Hunt:
Why would anyone be pressing enter instead of tab? Are they expecting
enter to take them to the next field, like tab would? I've never seen
anyone do that before.
Old DOS-based (80x25 character) data input programs... ;-)


Heh, I was surprised by the question. I gotta remember how young some
folks are! :-)

Most GUI users though are aware of the tab key, at least in my experience.


Let's put it this way: if someone doesn't know how to navigate the
OP's form using Tab instead of Enter, then he has the same problem on
every other form he completes, in which case he'll figure out pretty
quickly that he's doing it wrong.

--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Jul 20 '05 #5

"Beauregard T. Shagnasty" <a.*********@ex ample.invalid> wrote in message
news:ru******** ***********@twi ster.nyroc.rr.c om...
Quoth the raven Lachlan Hunt:
Why would anyone be pressing enter instead of tab? Are they expecting
enter to take them to the next field, like tab would? I've never seen
anyone do that before.


Old DOS-based (80x25 character) data input programs... ;-)

Most GUI users though are aware of the tab key, at least in my experience.


Does your "experience " include usability studies?
Don't get me wrong, BTS, your posts are usually very good. But, I *do* have
experience in viewing subjects in a usability lab, and the only
(able-bodied) people who use the "tab" key for anything are usually power
users on a laptop. Some desktop power users will use "tab" as well, but not
as reliably as those on a laptop.
"Power users" are unequivocally not representative of the general populace.

-Karl
Jul 20 '05 #6
Quoth the raven Karl Groves:
"Beauregard T. Shagnasty" <a.*********@ex ample.invalid> wrote in message
news:ru******** ***********@twi ster.nyroc.rr.c om...
Old DOS-based (80x25 character) data input programs... ;-)

Most GUI users though are aware of the tab key, at least in my experience.
Does your "experience " include usability studies?


No, not like you have. My experience is 20 years in the database world
[1], writing prgs for capturing and manipulating data. Business
database applications. In the old DOS world, people hit the Enter key.
As we progressed into GUI, and the Tab key really worked <g>, most of
my clients adapted.

In the WWW world, my experience is from looking over the shoulders of
many friends and coworkers, who generally move from field to field
with the Tab (experienced users) or use the mouse to click in the next
field (inexperienced) . Then of course they click the submit button and
never use the Enter key.

Sometimes, a simple "Hey, why don't you use the Tab key?" can change
their lives forever.
Don't get me wrong, BTS, your posts are usually very good.
Well, thanks for that. ;-)
But, I *do* have
experience in viewing subjects in a usability lab, and the only
(able-bodied) people who use the "tab" key for anything are usually power
users on a laptop. Some desktop power users will use "tab" as well, but not
as reliably as those on a laptop.
If there were usability labs in my area, I'd be happy to visit.
Unfortunately, about all we have is community college adult education
classes, which really don't qualify.
"Power users" are unequivocally not representative of the general populace.


Agreed.

[1] Second career...

--
-bts
-This space intentionally left blank.
Jul 20 '05 #7
EBG wrote:
My site only cares about IE.


Then your post is off-topic. Please find a microsoft group.

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #8
EBG wrote:
My site only cares about IE.


This group is about HTML authoring for the World Wide Web, not just IE. If
you want answers about your IE site, ask on a microsoft.* group.

--
Shawn K. Quinn
Jul 20 '05 #9

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

Similar topics

4
16644
by: Simon Wigzell | last post by:
Is there a way to prevent a form submitting when you press enter on a text field? Some people press enter when they finish typing in a text field out of habit I guess unconcsciously thinking it will take them to the next field. Instead it submits the form and this causes all kinds of problems in my case. Any javascript solution?
2
7184
by: Cindy | last post by:
Hi all you smarties out there, I'm having a little conundrum with my asp.net page Scenario: I have a form (asp.net) with no code behind (as yet). I have placed a javascript function on a server side textbox control to do something - eg change the words on label - when the key pressed is the "enter" key. I can see the label change to what i expect ----- BUT .... then the
2
1415
by: MattB | last post by:
I have a WebForm that has a "reset" button and an "Enter" button. It's a long form, and users tend to hit the enter key at some point when they really want to tab to the next form field. How can I control this default behavior? I figured I could have an "are you sure?" confirmation if fields are blank, but I think I'd just rather make it so enter doesn't submit the form. Any examples or suggestions for me? Thanks! Matt
7
5712
by: Doug Bell | last post by:
Hi, I have just built a small application with a form that has one Text Box and one Check Box and a couple of Command Buttons. What I am trying to achieve is that if the Text Box has focus and the User hits the "Enter" button the focus will move to the next Tab item (i.e. the Check Box). Likewise on the Check Box but obviously if a Command Button has the focus, it will initiate the Click event I have set the Forms CancelButton to the...
1
2362
by: laredotornado | last post by:
Hi, I have a very simple form and I would like on Firefox and IE for the form to submit upon the user pressing enter in the textfield. Right now, I have <script type="text/javascript"> function search() { var search = document.getElementById('Search'); location = "search_response.php?Search=" + escape(search.value);
3
4166
by: aryayudhi | last post by:
I have a html page that has javascript that works perfectly in IE, but not in Firefox. The use of this javascript to change "Tab" to "Enter" Button. When we press Tab, it is like when we press Enter button. How to make this script can be run on Firefox? I would be grateful to anybody who can help me on this, as I have got out of my depth with this problem. Thanks, Arya ======== This is the script : <script language="javascript"...
0
1657
by: roxanaislam | last post by:
Hi: I have a search form in my application which has 4 dropdown list controls, one text box, one "GO" button, one "reset" button. When the "GO" button is clicked the form gets submitted and the results page is displayed. When I press the "enter" key nothing happens. I want to submit the form by pressing the "enter" key also. I have placed <input type="text" style="display:none"> after the <form> tag in the HTML section. Now if my cursor...
4
3874
by: roxanaislam | last post by:
Submitting Form by pressing the "ENTER" key -------------------------------------------------------------------------------- Hi: I have a search form in my application which has 4 dropdown list controls, one text box, one "GO" button, one "reset" button. When the "GO" button is clicked the form gets submitted and the results page is displayed. When I press the "enter" key nothing happens. I want to submit the form by pressing the "enter"...
3
5504
by: Simon Verona | last post by:
Sorry for the repost, but this group seems to be more "active" than the group that I posted my question, and it's probably as valid here as there! I have a usercontrol, which contains a textbox (as well as other controls). The textbox is set for multiline, so it *should* accept an Enter Key to move down to the next line. However, I'm finding that if I put the control onto a form which has a default Accept button set, then pressing...
0
8443
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
8356
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,...
0
8781
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8550
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
7385
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...
0
5663
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
4198
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...
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1772
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.