Sending data through header method PHP
<p>I have what seems to me as a bit of an odd scenario, well maybe not so odd, but i've never had to do it before.</p>

<p>Anyway, i have a payment system that uses Moneybookers (or Skrill) to take a payment, this system sends database to a file on my server where i check the data, and then update records on my databases accordingly.</p>

<p>But recently i have integrated  system called iDevAffiliate, this system tracks affiliate payments and in order to itegrate it full, when Moneybooker sends up data and our records are update we need to give a signal to the iDevAffiliate system to say that a payment has been made and is affiliated with an affiliate record.</p>

<p>Now to do this i thought it would be a simple:</p>

<pre><code>header("location: http://www.mysite.com/affiliate/sale.php?profile=72198&amp;idev_saleamt=2500&amp;affiliate_id=$aff_id");
</code></pre>

<p>But i wasn't sure if i had to do it another way like this:</p>

<pre><code>header("location: http://www.mysite.com/affiliate/sale.php?profile=72198&amp;idev_saleamt=2500&amp;affiliate_id=" . $aff_id);
</code></pre>

<p>But they both does seem to work. However, if i put that link into my browser replace the $aff_id with the actual affiliates id it sets everything properly, is the header mthod not the right thing to use? how else could i do this?</p>
