File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "form validation help" Watch "form validation help" New topic
Author

form validation help

greddy
Greenhorn

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.
thanks,
greddy
Tony Alicea
Desperado
Sheriff

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

Checkboxes:
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
 
Don't get me started about those stupid light bulbs.
 
subject: form validation help