sb4short Posted December 21, 2015 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> Link to comment Share on other sites More sharing options...
Ingolme Posted December 21, 2015 Share Posted December 21, 2015 What does the code in contact_form.php look like? Link to comment Share on other sites More sharing options...
davej Posted December 21, 2015 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now