Advertisement
JonneOpettaja

Untitled

Nov 4th, 2018
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.97 KB | None | 0 0
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.  
  5. <title>A Slick Ajax Contact Form with jQuery and PHP</title>
  6. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  7. </head>
  8. <body>
  9.  
  10. <div id="content">
  11.  
  12.   <p style="padding-bottom: 50px; font-weight: bold; text-align: center;"><a href="#contactForm">~ Send us an email ~</a></p>
  13.  
  14.   <!-- Content here -->
  15.  
  16.   <p style="padding-top: 50px; font-weight: bold; text-align: center;"><a href="#contactForm">~ Send us an email ~</a></p>
  17.  
  18. </div>
  19.  
  20. <form id="contactForm" action="processForm.php" method="post">
  21.  
  22.   <h2>Send us an email...</h2>
  23.  
  24.   <ul>
  25.  
  26.     <li>
  27.       <label for="senderName">Your Name</label>
  28.       <input type="text" name="senderName" id="senderName" placeholder="Please type your name" required="required" maxlength="40" />
  29.     </li>
  30.  
  31.     <li>
  32.       <label for="senderEmail">Your Email Address</label>
  33.       <input type="email" name="senderEmail" id="senderEmail" placeholder="Please type your email address" required="required" maxlength="50" />
  34.     </li>
  35.  
  36.     <li>
  37.       <label for="message" style="padding-top: .5em;">Your Message</label>
  38.       <textarea name="message" id="message" placeholder="Please type your message" required="required" cols="80" rows="10" maxlength="10000"></textarea>
  39.     </li>
  40.  
  41.   </ul>
  42.  
  43.   <div id="formButtons">
  44.     <input type="submit" id="sendMessage" name="sendMessage" value="Send Email" />
  45.     <input type="button" id="cancel" name="cancel" value="Cancel" />
  46.   </div>
  47.  
  48. </form>
  49.  
  50. <div id="sendingMessage" class="statusMessage"><p>Sending your message. Please wait...</p></div>
  51. <div id="successMessage" class="statusMessage"><p>Thanks for sending your message! We'll get back to you shortly.</p></div>
  52. <div id="failureMessage" class="statusMessage"><p>There was a problem sending your message. Please try again.</p></div>
  53. <div id="incompleteMessage" class="statusMessage"><p>Please complete all the fields in the form before sending.</p></div>
  54.  
  55. </body>
  56. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement