Forums

Post cf_user_id field to diffferent table

mcarbone 21 Jul, 2011
I am using chronoforms for Joomla Registration (added fields of course). I would like to save the extra user data (phone, address, etc) to the jos_contact_details table. Everything is working fine except the user_id. I cannot get the cf_user_id to populate into the user_id field in the contact_details table, obviously because of the different field names. Any suggestions?

I do not want to store the data in the chronoforms table that I can create because there are many features with the contact_details table that I would like to use.
mcarbone 21 Jul, 2011
Solved:

I added this to OnSubmit before code:
<?php
$user_id = JRequest::getVar('cf_user_id', '', 'post');
JRequest::setVar('user_id', $user_id, 'post');

?>
This topic is locked and no more replies can be posted.