I create fields like this:
for($i = 0; $i < count($rows); $i++) { echo CHtml::label($rows[$i]['name'], $rows[$i]['name']); echo CHtml::textField('elem[]','',array('id'=>$rows[$i]['name'])); } And in the controller:
foreach($_POST['elem'] as $check) { $Ids = $_POST['elem']; }; So here I get:
array(2) { [0]=> string(3) "231" [1]=> string(1) "4" } And how to find out the id field?
array('id'=>$rows[$i]['name'])? - romeocount($rows). Correct:for($i = 0, $cnt = count($rows); $i < $cnt; $i++) {}- romeo