jquery post in Wordpress
jquery post in Wordpress
I am using the jquery ajax post for a contact form I am creating. I am doing it in wordpress. I have used firebug to try to debug the errors and I am getting a 404 error for the sendEmail.php file.
I have tried placing an absolute url and also used relative urls. I tried fixing file permissions and nothing is working. Any ideas?
-
$.ajax({
type: 'POST',
url: '../sendEmail.php',
data: 'name=' + name + '&email=' + email + '&comments=' + comments,
success: function(results) {
$('#main img.loaderIcon').fadeOut(1000);
$('ul#response').html(results);
}
}); // end ajax