Create a new record in another table

kissinger

Member
Hallo!

I use the form juser plugin for registration of new users in frontend. That works fine.
If I save the new user he gets a unique user_id - the field "id" in Joomlas user-table.

I have another table "profiles", where the users can store additional informations.
Now I want that if a new user was createt, in the other table "profiles" was automatically created a new record.
This record is empty, only the field "user_id" gets the UserId of the new registred user.
I found the form plugin "upsert" which creates records in other tables.
But I need to save the new userId, whis is not part of the form-data.

How I can solve this problem with the upsert-plugin or is there a better way for doing that?

Thank you!
 
Maybe because you should have a "user" element wich collect the user ID in your form, so you can use this field to fill your other table ? I'm not sure of this answer but maybe it help ?
I would be really happy if you can tell me where you found this "upsert" form plugin. I'm looking for but don't find it... (Working with Fabrik 3.0.8)
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top