contact.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <div class="container mt-3 py-4">
  2. <div class="row">
  3. <div class="col-lg-4">
  4. <h2>Contact Info</h2>
  5. <p>We are always happy to receive correspondence. We try to answer all emails within an hour during working hours.</p>
  6. <strong><address>Check Policy Limited<br />
  7. 8 Market Street, Liskeard<br />
  8. Cornwall, PL14 3JJ</address></strong>
  9. <ul>
  10. <li><i class="fal fa-fw fa-phone"></i> 07841 353775</li>
  11. <li><i class="fal fa-fw fa-envelope"></i> <a href="mailto:admin@<?=DOMAIN?>">admin@<?=DOMAIN?></a></li>
  12. </ul>
  13. </div>
  14. <div class="col-lg-8">
  15. <h2>Contact Form</h2>
  16. <form method="post" data-recaptcha-form>
  17. <div class="row">
  18. <div class="col-md">
  19. <div class="form-group">
  20. <input class="form-control" type="text" name="name" placeholder="Enter name" required />
  21. </div>
  22. </div>
  23. <div class="col-md">
  24. <div class="form-group">
  25. <input class="form-control" type="text" name="email" placeholder="Enter email address" required />
  26. </div>
  27. </div>
  28. <div class="col-md">
  29. <div class="form-group">
  30. <input class="form-control" type="text" name="phone" placeholder="Enter contact number" required />
  31. </div>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <textarea class="form-control mb-3" name="message" placeholder="Enter message" rows="8" required></textarea>
  36. </div>
  37. <?php
  38. if(GOOGLE_RECAPTCHA_SITE_KEY) {
  39. if(GOOGLE_RECAPTCHA_VERSION == 2) {
  40. ?>
  41. <div class="g-recaptcha my-3" data-sitekey="<?=GOOGLE_RECAPTCHA_SITE_KEY?>"></div>
  42. <?php
  43. }
  44. if(GOOGLE_RECAPTCHA_VERSION == 3) {
  45. ?>
  46. <div class="mb-3 text-muted">
  47. <small>
  48. This site is protected by reCAPTCHA and the Google
  49. <a href="https://policies.google.com/privacy">Privacy Policy</a> and
  50. <a href="https://policies.google.com/terms">Terms of Service</a> apply.
  51. </small>
  52. </div>
  53. <?php
  54. }
  55. ?>
  56. <?php
  57. }
  58. ?>
  59. <button class="btn btn-primary" type="submit" name="submit" value="<?=$_SESSION["csrf_token"]?>">Send Message</button>
  60. </form>
  61. </div>
  62. </div>
  63. </div>