File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes PHP and the fly likes Processing checkboxes data. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » PHP
Bookmark "Processing checkboxes data." Watch "Processing checkboxes data." New topic
Author

Processing checkboxes data.

ashlan cooper
Greenhorn

Joined: Nov 23, 2010
Posts: 11
Hey there, I'm trying to process the data in form I created.
this is my code


but I have a question in retrieving the data from the checkboxes. How do I implement what the user has selected into the if statement.

Thanks in advance.
Marek Krzeminski
Greenhorn

Joined: Mar 13, 2011
Posts: 14

I'd use JavaScript to process the user's response.

I use the jQuery framework to make writing JavaScript easier. With it you could do something like:

$( "form input:checkbox").each( function() {
//do what ever you need here per check box object
}


3D OpenGL, C++ Game Development Video Tutorials @
www.marekKnows.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Processing checkboxes data.
 
Similar Threads
when i retrive data from access it showing empty page in tomcat
Validating a group of input strings
always get the value "20" no matter which checkbox I clicked
Space not releasing on toggle of divs
raw HTML in Mozilla