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 trial

HTML

Form Input

How do you access the information that users input onto forms? I learned how to make them on a treehouse course, but can someone direct me on where to go to use and access this information?

3 Answers

Kevin Korte
Kevin Korte
28,148 Points

You gotta send that data using a server side language to the server, and from there you do something with that data. If you want that data to go into a database, like say if someone created a user account, than that data once sent to the server, would need to be ran through some database queries to be placed where it needs to.

If it's a contact form, and you want it to send out an email, than the values in the input form can be fetched using your server side language, and an email can be sent with that information from there.

Thanks! Are there modules to learn more about server side languages? If so, where could I find them?

Kevin Korte
Kevin Korte
28,148 Points

The PHP lessons here for the Shirts 4 Mike project deals a little bit with sending emails from forms, and I'm sure the Ruby on Rails lessons deals with similar form handling, although I haven't done those courses yet.