By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,481 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,481 IT Pros & Developers. It's quick & easy.

form submit

P: n/a
hari,

I do not want to allow uders to send the form just by pressing ENTER,
just by clicking on the submit button. how can I do it?

rrd

Jul 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello,

Don't put a button of type 'submit' then on the button that you want to have
the form submitted, have its type as type='button' and onclick handler as
onclick='this.form.submit()'

--
Elias
"Radharadya dasa" <ra********@freemail.hu> wrote in message
news:br**********@namru.matavnet.hu...
hari,

I do not want to allow uders to send the form just by pressing ENTER,
just by clicking on the submit button. how can I do it?

rrd

Jul 20 '05 #2

P: n/a
On Mon, 8 Dec 2003 14:50:54 +0200, "lallous" <la*****@lgwm.org> wrote:
Hello,

Don't put a button of type 'submit' then on the button that you want to have
the form submitted, have its type as type='button' and onclick handler as
onclick='this.form.submit()'


Which means that anyone without Javascript is completely unable to use
the form. Welcome to my new page:
http://www.xs4all.nl/~sbpoley/webmatters/formval.html
Perhaps the best response to the OP (whose question has been lost
because you turned it into a sig) would be to ask why he wants to
prevent a user from submitting using the Enter key. What actual problem
is he trying to solve? Some users prefer to use the Enter key, after
all.

--
Stephen Poley
Jul 20 '05 #3

P: n/a
hari,

OK. So my problem is that I do not want to let the user to send the form
just in that case if he/she filled ALL the input fields.

rrd

Perhaps the best response to the OP (whose question has been lost
because you turned it into a sig) would be to ask why he wants to
prevent a user from submitting using the Enter key. What actual problem
is he trying to solve? Some users prefer to use the Enter key, after
all.


Jul 20 '05 #4

P: n/a
Radharadya dasa wrote:
I do not want to allow uders to send the form just by pressing ENTER,
just by clicking on the submit button. how can I do it?


You want to manipulate the behavior of their software
they are used to in an unexpected way? Great.
PointedEars
Jul 20 '05 #5

P: n/a
Radharadya dasa wrote:
OK. So my problem is that I do not want to let the user to send the
form just in that case if he/she filled ALL the input fields.
That is a form validation problem, why don't you read previous answers
before you ask that question again?
[Top post]


Please stop doing that. Place you answer below the line(s) of quote you
are reffering to and remove the line(s) of quote you are not referring
to, just as you see here.
PointedEars
Jul 20 '05 #6

P: n/a
Top-posting corrected: perhaps you could have a quick read of
http://www.xs4all.nl/~sbpoley/toppost.htm
On Mon, 08 Dec 2003 18:01:57 +0100, Radharadya dasa
<ra********@freemail.hu> wrote:
Perhaps the best response to the OP (whose question has been lost
because you turned it into a sig) would be to ask why he wants to
prevent a user from submitting using the Enter key. What actual problem
is he trying to solve? Some users prefer to use the Enter key, after
all.

OK. So my problem is that I do not want to let the user to send the form
just in that case if he/she filled ALL the input fields.


Right. The page I mentioned covers that:
http://www.xs4all.nl/~sbpoley/webmatters/formval.html
--
Stephen Poley
Jul 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.