Assign The Data From An Array In Controller

Hi,

I am using an array type text area to post the values from a view to controller. My view text area is like this.




<td><?php echo CHtml::activeTextArea($submission_data, "[$item->id]item_remarks", array('cols'=>80,'rows'=>10) );?></td>

Now when I post this data and if the validation is wrong I want to retain the value that is in the posted data but I am having issues. I am trying to assign the data in this format


  foreach($_POST['ChecklistSubmissionData'] as $key=>$value){

                        $data = "[".$key."][item_remarks]";

                        $submission_data->$data = $value;

                        

                    }

But it is giving me this error Property “ChecklistSubmissionData.[87][item_remarks]” is not defined. I don’t know where the dot is coming in the array format. Can anyone tell me what I am doing wrong.

Thanks in advance.