Hi Simon, this is what I have put in: view: <?php echo $form->create('Result');?> <table cellpadding="0" cellspacing="0" border="0"> <th>Subject</th> <th>Student Number</th> <th>Quiz Result</th> <?php for ($i = 1; $i <= 20; $i++) { echo "<tr>"; echo "<td>"; echo $form->input("Result.{$i}.subject", array('label' => '')); echo "</td>"; echo "<td>"; echo $form->input("Result.{$i}.student", array('label' => '')); echo "</td>"; echo "<td>"; echo $form->input("Result.{$i}.quiz", array('label' => '')); echo "</td>"; } ?> </table> <?php echo $form->end('Add results'); ?>
controller: function add() { $this->Result->saveAll($this->data,false); } and here is the error that it gives.... (??): Warning (2): array_merge() [function.array-merge]: Argument #2 is not an array [CORE/cake/libs/model/model.php, line 1358] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---