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!

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

CSS Bootstrap 4 Basics (Retired) Building Forms with Bootstrap Custom Form Controls for Cross-Browser Consistency

Bootstrap Forms

How do I control where the information that is gathered with the form goes? I would like the information gathered to be displayed in an email.

2 Answers

Andrew Shook
Andrew Shook
31,709 Points

Technically, the action attribute of the form elements controls where the information in the form is sent. However, in order to transfer to form data to an email you will need a server side program to parse the form data a send an email.

Rich Donnellan
Rich Donnellan
Treehouse Moderator 27,671 Points

Check out the course Build a Basic PHP Website; specifically, the Adding a Basic Form section. This will get you up to speed on server side processing (using PHP obviously).