Hi all, I have a small "contact form" with jquery validation, php and ajax. My website running on IIS.
The problem is, I am trying to post the form contents using ajax+jquery, but I am getting the response like "405 Method Not Allowed" (From firebug console).
But its running properly in local server. Pls help me to fix 405 error. Thanks in advance.
Here's the js code while submitting the form:
$("#contactusForm").validate({
rules:
{
firstName:{required:true},
email:{required :true},
},
messages:
{
firstName:{required: " *Required"},
email:{ required:" *Required"},
},
submitHandler: function (form)
{
var dataString='firstName='+ firstName + '&email=' + email;
$.ajax({
type: "POST",
url: "send_contact.php",
data: dataString,
success: function() {
$('#result').html("<br/><b>Thank you</b>");
}
});
}
});