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
Timothy Blubaugh
9,522 PointsPlugging My Form In
I am building my personal website. I have my contact form built in HTML but need to plug it in so that it sends me the data in an email. How do I do this or what course do I take?
P.S. I am not into backend development and really don't care to be I just need to get this form working.
3 Answers
egaratkaoroprat
16,630 PointsIt won't work without back end development, if you want to build your own... But there are some tools or services you can use, just google for them. I found https://formspree.io/ maybe you can give it a try.
Ash Scott
435 PointsDude, that looks pretty cool. It would be worth paying the money for the premium version to hide the email, but then again you can probably encode it (With JS or something), or add the email on the end, on submit with JS. Good find dude!
Kevin Korte
28,149 PointsHere is another service I can recommend: https://formkeep.com
Of course sending a form via email 100% requires some back end logic, services like formkeep and formspree abstract that logic on themselves.
These services are also very handy to have forms on websites hosted with github pages where you can't have any backend logic.
Ash Scott
435 PointsHi Timothy Blubaugh,
You need to look into doing it with PHP. (see this link)
You could also use this script which has an admin panel and form builder. You can then display the form on your site, and target it with CSS :)
The last option you have is to use the following form tag:
<form method="post" action="mailto:ash@mydomain.com">
</form>
Your inputs will need the name="" attribute so the email makes sense. This will open a new email, in the users email client populated with what they've put in the form. It wont send the email though. To send it you need to use a PHP script.
Good luck! Ash
Timothy Blubaugh
9,522 PointsTimothy Blubaugh
9,522 PointsAny recommended Treehouse courses?