HTML:
Code:
....
<input type="checkbox" name="groups[]" value="1"  />&nbsp;&nbsp;Administrators<br /><br />

<h5>Remove  DarkAngelBGE from the following projects</h5>
<input type="checkbox" name="projects[]" value="1"  />&nbsp;&nbsp;0.A.D.<br /><br />

<h5>Remove  DarkAngelBGE from the following departments</h5>
<input type="checkbox" name="departments[]" value="8"  />&nbsp;&nbsp;0.A.D.&nbsp;Web + Community Development<br /><br />
PHP:

PHP Code:
                //-------------------------------------------
                // Projects interpretation
                //-------------------------------------------
                
                
if( isset( $SITE->input['projects'] ) )
                {
                    foreach( 
$SITE->input['projects'] as $projectId )
                    {
                        
$DB->query"DELETE FROM intr_user2project WHERE user_id = '{$SITE->input['userId']}' AND proj_id = '{$projectId}'" );
                    }
                
                    
$this->content .= "<p>{$name} successfully deleted from the project(s).</p>";
                }
                else
                {                    
                    
$this->content .= "<p>{$name} not deleted from any projects.</p>";
                }
            
    
    
                
//-------------------------------------------
                // Departments Interpretation
                //-------------------------------------------
                
... 
As you see I grab the checkboxes with $SITE->input[someThing] (which works as $_POST, just secures the data). Now when I iterate over $SITE->input['projects'] for example (within the isset() statement ! ), I get wrong parameter for foreach. Echoeing it gives a string "Array".

Anyone ?