Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Jukka K. Korpela
March 18, 2005, 8:45 am
rate this thread
Are you sure it's a sixth-level heading? Have you got h1, h2, h3, h4,
and h5 before it?
Don't use </input>. It's invalid in classic HTML, not recommended in
XHTML either, and implies a serious risk with no potential gain.
Ditto here. But you score 42 bonus points for using a normal submit
button instead of an image submit button and for not including a
destroy ("reset") button.
Works more or less as designed. The name=value pair gets included only
for "active controls" - which is a somewhat vague term, but it is
natural to think that a submit button is "active control" if and only
if it was used to submit the form (e.g., by clicking on it, or by
tabbing to it and hitting Enter).
However, beware that browser interpretations vary. Some browsers think
that hitting Enter in a text input field is equivalent to using the
submit button - or _a_ submit button (things get more complex if there
are several submit buttons in a form).
The bottom line is that your form handler should not expect to know
which technique was used to submit the form, at least if there is a
text input field in the form. For more info, check
Yucca, http://www.cs.tut.fi/~jkorpela /
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html