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:

  type: "POST",
  url: "file.php",
  data: dataString,
  success: function() {

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

Using jquery: using-jquery

Leave a Reply