Connecting two database tables in a single server action?

Hi!

I just created a user profile page that contains a form populated by form generator. In this case, I want to create a new record to profile_table that includes a foreign key of the user_table. Now in order to connect the user id with a user profile, I created a server action with a database insert where I set the value of (userid) foreign key to match the user_id.

Just want to make sure this is the right approach? At least it show as supposed in my database table!

Community Page
Last updated: