Hi, I have a PHP email form on my website, it's located here: http://xrumergeek.com/contact_us.html If you try to send an email, you will a popup box comes up with the following message: The form validates! (Normally, it would submit the form here) Code (markup): Can someone please help me so the email actually sends, as right now it doesn't. Furthermore, how do I edit the code to make it not mandatory to enter a phone number? Thanks!
Hello, Remove the alert box which contains "The form validates! (Normally, it would submit the form here)" by commenting in the code or by deleting it from the code.
Hello, contact.js $(document).ready(function(){ $("#contactformlite").RSV({ onCompleteHandler: myOnComplete, displayType: "display-html", errorFieldClass: "errorField", rules: [ "required,Full_Name,Please enter your Full Name.", "required,Email_Address,Please enter your Email Address.", "valid_email,Email_Address,Please enter a valid Email Address.", "required,Telephone_Number,Please enter your Telephone Number.", "required,Your_Message,Please enter Your Message." ] }); function myOnComplete() { var str = $("#contactformlite").serialize(); $("#rsvErrors").fadeIn(1500, function() { $(this).html("<p><img src='images/ajax-loader.gif' /></p>"); }); Comment this line ->alert("The form validates! (normally, it would submit the form here)."); $.ajax({ type: "POST", url: "process-contact.php", data: str, success: function(msg) { $("#rsvErrors").html("<p class='success'>Contact Form Submitted!</p>") .append("<p class='success'>We will be in touch soon.</p>") .hide() .fadeIn(1500, function() { clearForm($("#contactformlite")); //resetForm($("#contactformlite")) }); } }); return false; } });
Hello, Please remove the line from your contact.js and save the file and then run the code alert("The form validates! (normally, it would submit the form here).");
I just removed it and uploaded the edited file to my server.... the validates form no longer displayed but emails still did not send. When this didn't work I replaced the code, but now when I try to submit the contact form it simply refreshes the page and the mail still does not get sent.
Hello, Did you checked your submitted values on process-contact.php page ? may be something is wrong within your process-contact.php page code.
To anyone reading this, the issue still has not been fixed. Can anyone offer to help with this? Edit: Nevermind, I have the original coder looking into it now... Thanks, WebDev
I faced some problem when i sent email through php scripts. After i sent email all emails go to spam box. Why is this happen ?? I m confusing about that