jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes form validation help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "form validation help" Watch "form validation help" New topic

form validation help


Joined: Jun 03, 2000
Posts: 15

hi all,
I need to show user's some fields on the screen and provide a check
box besides each one of it such that the user checks the box. And when the
user clicks on the submit button at the end then I need to supply these
field names (which ever one's are selected) to the procedure.
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
<FORM ACTION="CGI script or Servlet">
<INPUT TYPE="checkbox" NAME="checkbox1" VALUE="check1">Check Here

Checkboxes (and radio buttons) are on/off switches that may be toggled by the user. A switch is "on" when the control element's selected attribute is set. When a form is submitted, only "on" checkbox controls can become successful.
17.13.2 Successful controls
A successful control is "valid" for submission. Every successful control has its control name paired with its current value as part of the submitted form data set. A successful control must be defined within a FORM element and must have a control name.

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link: http://aspose.com/file-tools
subject: form validation help
It's not a secret anymore!