title: Pass PHP POST data to a Wordpress page with permalink rewrites on
body: <p>I'm working with an eCommerce gateway that passes transaction data back to my site after a completed sale via PHP POST data. I need to track this data with Google Analytics' eCommerce event tracking, and present a thank-you page.</p>
  
  <p>Currently, I have the eCommerce site sending customers to /thankyou.php, which has</p>
  
  <pre><code>$total = $_POST["Total"];
  </code></pre>
  
  <p>(among other fields) in the header. And then I use Google's script to send the data to Analytics:</p>
  
  <pre><code>_gaq.push(['_addTrans',
      "&lt;?php echo $orderid; ?&gt;",           // order ID - required
      "&lt;?php echo $storename; ?&gt;",  // affiliation or store name
      "&lt;?php echo $total; ?&gt;",          // total - required
      "",           // tax
      "",              // shipping
      "&lt;?php echo $city; ?&gt;",       // city
      "&lt;?php echo $state; ?&gt;",     // state or province
      "&lt;?php echo $country; ?&gt;"            // country
    ]);
  </code></pre>
  
  <p>This works! Perfectly. <strong>The problem is</strong> : when I try and put the same code in Wordpress' header (or on a static page), none of the $_POST data comes through. All of the fields are blank. I'm assuming this is because I'm sending the data to something like "/thank-you/" instead of /thank-you.php.</p>
  
  <p>Is there any way I can make a Wordpress page deal with $_POST data in the same way a .php page would?</p>
  
  <p>Thank you</p>