Template comes with ready to use:
- Contact Form
All needed files are in /form directory.
Remember to includeon page.
To configure form just edit form/config.php and change e-mails to your own :
1 2 |
$to = "mail@example.com"; $from = "mail@example.com"; |
That’s it!
Screenshot:
Markup:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<form action="assets/form/send.php" method="POST" class="validateIt ct-u-marginBottom30 ct-form ct-form-grey"> <div class="row"> <div class="col-md-6"> <input id="contact_name" data-error-message="Name" placeholder="Name" type="text" required="" name="field[]" class="form-control input--withBorder ct-u-marginBottom10 input-focusMotive"> <label for="contact_name" class="sr-only"></label> </div> <div class="col-md-6"> <input id="contact_email" data-error-message="Email" placeholder="Email" type="email" required="" name="field[]" class="form-control input--withBorder ct-u-marginBottom10 input-focusMotive"> <label for="contact_email" class="sr-only"></label> </div> </div> <textarea id="contact_message" data-error-message="Message is required" placeholder="Message" rows="8" required="" name="field[]" title="Message" class="form-control input--withBorder ct-u-marginBottom20 input-focusMotive ct-u-marginBottom20"></textarea> <button class="btn btn-primary btn-lg text-uppercase">send message</button> </form> |