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
bootstrap template contact form not working
Hi can someone please help me with this contact forms code. I am not receiving the emails,
<div class="col-md-7 contact-form wow animated fadeInLeft"> <form action="mailto:firstname.lastname@example.org" method="post"> <div class="input-field"> <input type="text" name="name" class="form-control" placeholder="Your Name..."> </div> <div class="input-field"> <input type="email" name="email" class="form-control" placeholder="Your Email..."> </div> <div class="input-field"> <input type="text" name="subject" class="form-control" placeholder="Subject..."> </div> <div class="input-field"> <textarea name="message" class="form-control" placeholder="Messages..."></textarea> </div> <button type="submit" id="submit" class="btn btn-blue btn-effect">Send</button> </form> </div>
Although bootstrap sets up the form, it still requires the contact.php to be set up so you can retrieve the form data and sent the email :)
Bootstrap is just handling the styles and front end functions.
This is one of the first articles I read on contact forms it may be helpful, if not let me know and i will get the form going with you :)
Hi Craig, after looking at examples the only thing I put in by the button was value= "submit". I'm not sure if that helped because I wasn't refreshing my browser after editing the code on my server. Thanks again