JFS
|
| Posted: 07/08/2003, 6:54 AM |
|
If I place a checkbox in an editable grid that is not bound to a database field, how do I parse the grid and determine which rows have the checkbox checked. I want to use this as a selection to e-mail certain people in the grid. Any help greatly appreciated.
|
|
|
 |
JFS
|
| Posted: 07/08/2003, 1:00 PM |
|
FYI
I figured it out by looking at the delete checkbox code. For anybody interested in doing the same here is a code snippet:
global $roster;
// Check for selected users
for ($rn = 1; $rn <= $roster->TotalRows; $rn++ ) {
if ($roster->FormParameters["selectbox"][$rn] == 1)
mail($roster->FormParameters["email"][$rn],$subject,$body);
}
|
|
|
 |
|