Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18577 > unrolled thread

form.ssubmit() nor submitting all the elements

Started bycerr <ron.eggler@gmail.com>
First post2013-02-19 22:51 -0800
Last post2013-02-20 06:54 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  form.ssubmit() nor submitting all the elements cerr <ron.eggler@gmail.com> - 2013-02-19 22:51 -0800
    Re: form.ssubmit() nor submitting all the elements "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-02-20 09:31 +0200
      Re: form.ssubmit() nor submitting all the elements cerr <ron.eggler@gmail.com> - 2013-02-20 06:54 -0800

#18577 — form.ssubmit() nor submitting all the elements

Fromcerr <ron.eggler@gmail.com>
Date2013-02-19 22:51 -0800
Subjectform.ssubmit() nor submitting all the elements
Message-ID<b3164766-a485-4079-ab3d-07bdc566cdc4@googlegroups.com>
I havwe a form at http://www.quaaoutlodge.com/mobile/book.html but upon hitting "Check nowww" for some reason not all the forms esp 'name' and 'contact_num' are not submitted, why not I'm wondering.../ Any suggestions would be appreciated!

Thank you!
Ron

[toc] | [next] | [standalone]


#18578

From"Jukka K. Korpela" <jkorpela@cs.tut.fi>
Date2013-02-20 09:31 +0200
Message-ID<kg1u2d$c3m$1@dont-email.me>
In reply to#18577
2013-02-20 8:51, cerr wrote:

> I havwe a form at http://www.quaaoutlodge.com/mobile/book.html but
> upon hitting "Check nowww" for some reason not all the forms esp
> 'name' and 'contact_num' are not submitted, why not I'm wondering.../

Those input elements lack the name="..." attribute. By HTML specs, only 
controls that have the name attribute can be "successful", i.e. 
contribute to the form data set. So change e.g.
<input id="name" size="10">
to
<input id="name" name="name" size="10">

Many people have misunderstood statements about the name attribute being 
deprecated. In HTML 4, it is deprecated for img and form elements. But 
not for controls like input, where it constitutes an essential part of 
functionality.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/

[toc] | [prev] | [next] | [standalone]


#18579

Fromcerr <ron.eggler@gmail.com>
Date2013-02-20 06:54 -0800
Message-ID<69baa44b-e47c-4a06-98bd-de57212dbb38@googlegroups.com>
In reply to#18578
On Tuesday, February 19, 2013 11:31:18 PM UTC-8, Jukka K. Korpela wrote:
> 2013-02-20 8:51, cerr wrote:
> 
> 
> 
> > I havwe a form at http://www.quaaoutlodge.com/mobile/book.html but
> 
> > upon hitting "Check nowww" for some reason not all the forms esp
> 
> > 'name' and 'contact_num' are not submitted, why not I'm wondering.../
> 
> 
> 
> Those input elements lack the name="..." attribute. By HTML specs, only 
> 
> controls that have the name attribute can be "successful", i.e. 
> 
> contribute to the form data set. So change e.g.
> 
> <input id="name" size="10">
> 
> to
> 
> <input id="name" name="name" size="10">
> 
> 
> 
> Many people have misunderstood statements about the name attribute being 
> 
> deprecated. In HTML 4, it is deprecated for img and form elements. But 
> 
> not for controls like input, where it constitutes an essential part of 
> 
> functionality.
> 

Yep, that was it. Thanks for your help, Yucca! 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web