I am trying to POST variables to a PHP script, modify the variables slightly, and POST the result to a secure page on PayPal.
The reason for this, is that Flash is sending the POST, and the ActionScipt language used in Flash will not allow me to create a variable named 'return' because it is a reserved word.
So I have to intercept the POST with my script and change 'Return=foo' to 'return=foo'
I cannot do this:
<?
header("Location: https://path_to_paypal_with _my post_vars");
?>
because the PayPal page appears, but the URL of my script is in the browser, making it look like a non-secure page on my site, not PayPal.
Any thoughts?