talkinggoat
Member
I have built an advanced user registration form that includes addresses and I want the address information to show up in the Joomla back-end. The issue is, the table that contains all the "user profile" information, (named user_profiles) such as Address, City, State, etc, just has all that information dumped into the table, indexed by the User's ID (user_id profile_key, profile_value, ordering).
Can someone point me in the right direction as to how I would write that information into the submission of a form? How would I make an element called "Address" write data to a mySQL table, where ordering is "1", profile_key is "profile.address1" and the "user_id" is the ID of the user that's signing up? I am sure I could make an SQL script to write the address and order, but what about the ID? And where would I even put the script so Fabrik would know, this element, called address, writes its data to the field user_profiles when I don't know the user_id? It doesn't seem like a simple join would work, here.
Can someone point me in the right direction as to how I would write that information into the submission of a form? How would I make an element called "Address" write data to a mySQL table, where ordering is "1", profile_key is "profile.address1" and the "user_id" is the ID of the user that's signing up? I am sure I could make an SQL script to write the address and order, but what about the ID? And where would I even put the script so Fabrik would know, this element, called address, writes its data to the field user_profiles when I don't know the user_id? It doesn't seem like a simple join would work, here.
Last edited: