Click to See Complete Forum and Search --> : Check boxes


GangWU
07-17-2003, 05:30 PM
Is there anyone who is using webmacro?

I have a group of checkboxes in one html page. After check some of them it goes to next page while it calls java servlet function. I can use getParameter("checkbox name") to retrieve the boxes but I don't know how I can tell which box was checked.

Any help is appreciated.

badda
07-18-2003, 03:39 AM
If getParameter("checbox name") returns an empty string ("") or NULL, the checkbox was not checked.
If it returns whatever you specified in the 'value'-attribute of the checkbox, the checkbox was checked.