-
☆ A M B ☆
- 1,231 Posts
Hey, I need some help with creating a registration form that has custom fields that need to be stored in the database and beable to be edited in the persons profile.
All I want to do is have 3 address lines and have that info stored in the database... Is it better to store it in the web_user_attributes or web_user_attributes_extended or even a new table altogether?
I have tried this in my form
<p>Address Line 1</p>
<p>
<label for="wlpeUserRegisteraddress1">
<input id="wlpeUserRegisteraddress1" type="text" name="address1" value="[+post.address1+]" />
</label></p>
<p>Address Line 2</p>
<p>
<label for="wlpeUserRegisteraddress2">
<input id="wlpeUserRegisteraddress2" type="text" name="address2" value="[+post.address2+]" />
</label></p>
<p>Address Line 3</p>
<p>
<label for="wlpeUserRegisteraddress3">
<input id="wlpeUserRegisteraddress3" type="text" name="address3" value="[+post.address3+]" />
</label></p>
And in my snippet i have
[!WebLoginPE? &type=`register` &tpl=`RegisterInstant` ®HomeId=`29` &groups=`Registered Members` ®CustomFields=`address1,address2,address3`!]
I tested it and no tables were created in the database... so I created them called address1,address2,address3 and tried again, nothing.
Could someone tell me how to transfer the info from webloginpe registration form to a database table. I can’t see what I done wrong.
-
☆ A M B ☆
- 1,231 Posts
Anyone got an example or pointers on this? I checked the documentation over and over but I’m not getting how to do it.
-
☆ A M B ☆
- 1,231 Posts
Thanks a lot, I have tried months ago when I knew less than I do now and I still can’t get it lol.
-
☆ A M B ☆
- 1,231 Posts
Has anyone else managed to have custom fields store on to a database using loginpe?
I have quite a bit of work left to do leading up to my "final" final exam, so I’ll try to get it to you in a few days from now.
-
☆ A M B ☆
- 1,231 Posts
Hey, i think I managed to figure it out.
If I have any problems with it, I’ll post again. Thanks though.
What did you figure out rossco? Were you able to create custom fields and store them and users to edit them? Let me know what you were able to figure out. THanks.
-
☆ A M B ☆
- 1,231 Posts
Yes I managed to created new fields in my registration form for address lines and have them stored in the database. These fields are able to be edited in the users profile.
Are those extra fields visible when you view the person’s profile in the manager?