[eluser]jpidgeon[/eluser]
It still appears to be filling the fields with "0"s
The fields still don't appear to be getting picked up when I check and submit a row(s)
Code:
function manage_team()
{
if ($this->input->post('team_id'))
{
foreach ($this->input->post('team_id') as $index => $id)
{
if ($this->input->post('delete'))
{
$this->admin_model->delete_team($id);
}
else if ($this->input->post('update'))
{
$team = array();
$team['team_name'] = $this->input->post('team_name[' . $index . ']');
$team['owner1'] = $this->input->post('owner1[' . $index . ']');
$team['owner2'] = $this->input->post('owner2[' . $index . ']');
$team['owner3'] = $this->input->post('owner3[' . $index . ']');
print_r( $team );
//$this->admin_model->update_team($id, $team);
}
}
}
//redirect('/admin/teams', 'refresh');
}
giving this again:
Quote:Array ( [team_name] => [owner1] => [owner2] => [owner3] => )