Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
25,767 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).