Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo

Add a Member from a mixed form


Go to End


1242 Views

Avatar
TuTToWeB

Community Member, 10 Posts

29 March 2008 at 12:24am

Hi to everyone,
I've a form that user can add a member with additional information. I want to add member on the member's table (using Member Class) and additional information using a customized class. Datas will be provided by a form and i don't know how to split data to save in different tables.

$fields = new FieldSet(
new TextField("FirstName",'Nome'),
new TextField("Surname",'Cognome'),
new EmailField("Email",'E-mail'),
new NumericField("Percentage","Percentuale")
);

i want add firstname,surname and email on the Member's table and Percentage on my table.

thanks you