Using jquery: How to link to a PHP file inside a WordPress Plugin using jquery on newest questions tagged jquery – Stack Overflow

I’m currently trying to write a wordpress plugin. Basically it’s a Form that is send to a PHP file via jQuery. (I’ve used the Code shown in this Tutorial:) Unfortunately I don’t know how to link to that PHP file inside jQuery. The Problem is, that I have enabled SEO friendly URL’s in WordPress, so when I’m using the following Code:

$.ajax({
  type: "POST",
  url: "file.php",
  data: dataString,
  success: function() {
    $('.done').fadeIn('slow');
  }
 });

The Server assumes the PHP file to be located at http://seofriendlylinktomypost/file.php .
Hopefully someone can help me and thanks in advance =).
I’m sorry for my awful English, I hope you understood everything^^

See Answers


source: http://stackoverflow.com/questions/11323593/how-to-link-to-a-php-file-inside-a-wordpress-plugin-using-jquery
Using jquery: using-jquery

Leave a Reply