You can use fake model / field names in your html/form helpers, and this data still comes through to the controller ok. So, you could have something like this in your view
echo $html->input( 'Host1/name' ); echo $html->input( 'Host1/address' ); echo $html->input( 'Host2/name' ); echo $html->input( 'Host2/address' ); and in your controller $this->Host->create(); $this->Host->save( array( 'Host'=> $this->data['Host1'] ) ); $this->Host->create(); $this->Host->save( array( 'Host'=> $this->data['Host2'] ) ); to insert both hosts from one form. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---
