Saving user data to database

Permalink 3 users found helpful
Wondered if more experienced c5 developers might be able to steer me in the right direction...

My application needs to take user-submitted data from a form in a single-page and add it to the database. I then need to be able to load this data in the dashboard.

I'm an experienced PHP developer but a c5 newbie so not sure how to approach this! I take it that I'll need to handle everything in the single-page controller file? How should I set up the new db table and db accessing functions? Is there any documentation or example code I could read?

 
okhayat replied on at Permalink Reply
okhayat
Do you need to create a form, let visitors fill in some data and submit it?
Why not just use the Form block and data results will appear in the Dashboard -> Reports?
roasthorse replied on at Permalink Reply
The form lives on a single-page and the form labels are populated by properties of the referring page. Can I hard-code a form block using these variables?

Another consideration is I'll need to sort the results in the dashboard by different criteria.