Thanks for the feedback everyone, much appreciated. I now have in my Users::Add() method the following:
$user_id = $this->User->getLastInsertID(); // Get the assigned user id to pass to project record $this->Session->write('user_id', $user_id); $this->redirect('projects/add/'); And in my Projects::Add method I have the following: $this->data['Project']['user_id'] = $this->Session->read('user_id'); ..which now populates the value of my hidden field called user_id, which is the foreign key in the Projects object. Thanks for your help; it was quite simple really wasn't it. Thanks, Jamieh... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---