sb4short 0 Posted December 21, 2015 Report Share Posted December 21, 2015 How do I get the following contact form to work: <form action="contact_form.php" method="post"> <div class="tm-contact-form"> <div class="form-group"> <input type="text" id="contact_name" class="form-control" placeholder="Name..." /> </div> <div class="form-group"> <input type="email" id="contact_email" class="form-control" placeholder="Email..." /> </div> <div class="form-group"> <input type="text" id="contact_subject" class="form-control" placeholder="Subject..." /> </div> <div class="form-group"> <textarea id="contact_message" class="form-control" rows="8" placeholder="Message..."></textarea> </div> </div> <button type="submit" class="btn text-uppercase templatemo-btn templatemo-send-btn">Send</button> </form> Quote Link to post Share on other sites
Ingolme 1,020 Posted December 21, 2015 Report Share Posted December 21, 2015 What does the code in contact_form.php look like? Quote Link to post Share on other sites
davej 251 Posted December 21, 2015 Report Share Posted December 21, 2015 Assign a name attribute to each input field. The code in contact_form.php should then access the $_POST array. http://www.w3schools.com/php/php_forms.asp Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.