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.

Form Questions /

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

Retrieve form values from DB


Go to End


1288 Views

Avatar
Pedro77

Community Member, 1 Post

22 March 2010 at 4:05am

Hi there,
I am new to Silverstripe but like it a lot so far (also new to php). I have created a new user form with ssn-id along with other user info. If the ssn-id exists in my database I want to retrieve other values from another database i.e. address, male,female etc.....
If the ssn-id does not exist the fields should be blank for the user to fill out. My question is how do I retrieve the values from the database for example how do I retrive the address value from my database based on the ssn-id ? Any help wil be much appreciated.