EE Contact Form


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {if segment_2 =="thanks"}
  2. <h1>Many thanks</h1>
  3. <p>We have now received your message and will be in touch shortly.</p>
  4. {if:else}
  5. {exp:freeform:form form_name="contactForm" form_class="cmxform" form_id="standardForm" required="name|email|comments" notify="[email protected]" template="contact_form" return="/contact/thanks/"}
  6. <legend>Your Contact Details</legend>
  7. <ol>
  8. <li>
  9. <label for="name">Name: <em>*</em></label>
  10. <input type="text" id="name" name="name" size="40" />
  11. </li>
  12.  
  13. <li>
  14. <label for="email">Your Email: <em>*</em></label>
  15. <input type="text" id="email" name="email" size="40" maxlength="35" value="" />
  16. </li>
  17. </ol>
  18.  
  19. <legend>Comments</legend>
  20. <ol>
  21. <li>
  22. <label for="subject">Subject:</label>
  23. <input type="text" id="subject" name="subject" size="40" value="" />
  24. </li>
  25. <li>
  26. <label for="comments">Message: <em>*</em></label>
  27. <textarea id="comments" name="comments" rows="10" cols="60"></textarea>
  28. </li>
  29. {if captcha}
  30. <li>
  31. <label for="captcha">Enter the word you see in the image: <em>*</em></label>
  32. <input type="text" id="captcha" name="captcha" value="" maxlength="20" /><br />
  33. {captcha}
  34. </li>
  35. {/if}
  36. </ol>
  37. <p><input name="submit" type="submit" value="Send Message" /></p>
  38. {/exp:freeform:form}
  39. {/if}
  40.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.