Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Pashkov
22,024 PointsHow to collect data from the form?
Hi guys! How to collect data from the form? The one was created in this course? To store data and retrieve it after? Is any course on this resources?
2 Answers
Alexander Solberg
14,350 PointsIf you want to store the data from forms to a database for instance, you need a server-language capable of manipulating a database(something like MySQL or MongoDB). I am biased, but I would recommend Node Js(javascript on the server-side) in combination with the Express framework, but all modern server-side languages will do the job just fine :)
Check out courses and videos that teach about connecting to a database and RESTful routing.
You can also store data from forms locally in the browser, but apparently it only accepts keys containing string values.
Jake Milburn
13,608 PointsFor that you are most likely wanting to look into the language php. It has methods called get and post which allow you to collect form information and then manipulate it how you would like. I would advise making sure you've got a good grasp of html before moving onto php though.
Michael Pashkov
22,024 PointsJake, Thank you for your thoughts.
Michael Pashkov
22,024 PointsMichael Pashkov
22,024 PointsAlexander, Thank you for your help.