Original Post
how can i fake a form post with php? i have this form from paypal: so i want to redirect the user to: https://www.paypal.com/cgi-bin/webscr with the 'encrypted' value posted. i tried setting this: $_POST['encrypted'] = "some value here needs to be posted!"; header ('Location: https://www.paypal.com/cgi-bin/webscr'); which sends me to the page, but looks like its not getting the post info
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="image" src="http://mybutton.com" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
<input type="hidden" name="encrypted" value="some value here needs to be posted!">
</form>