473,396 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2803
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**********@lachy.id.au.update.virus.scanners

Remove .update.virus.scanners 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.*********@example.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.*********@example.invalid> wrote in message
news:ru*******************@twister.nyroc.rr.com...
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.*********@example.invalid> wrote in message
news:ru*******************@twister.nyroc.rr.com...
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
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...
2
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...
2
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...
7
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...
1
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">...
3
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...
0
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...
4
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...
3
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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,...

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.