hjkhhndndndnd,trt
bnmbertsu,yu,yu,fffffffy,ltdfg
/
home4
/
gofvotmy
/
public_html
/
ensowhey.com
/
temp
/
Upload FileeE
HOME
<!DOCTYPE html> <html> <head> <title>Contact Form</title> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> $(document).ready(function() { $("#contactForm").submit(function(event) { event.preventDefault(); // Prevent form submission // Collect form data var name = $("#name").val(); var email = $("#email").val(); var message = $("#message").val(); // Send form data to the PHP script using AJAX $.ajax({ url: "mail2.php", method: "POST", data: { name: name, email: email, message: message }, success: function(response) { $("#thankYouMessage").text(response); // Display the response message $("#contactForm")[0].reset(); // Reset the form }, error: function() { $("#thankYouMessage").text("Sorry, there was an error sending your message."); } }); }); }); </script> </head> <body> <h1>Contact Us</h1> <form id="contactForm"> <input type="text" id="name" name="name" placeholder="Your Name" required> <input type="email" id="email" name="email" placeholder="Your Email" required> <textarea id="message" name="message" placeholder="Your Message" required></textarea> <input type="submit" value="Submit"> </form> <div id="thankYouMessage"></div> </body> </html>