I have a problem which i'm not sure how to solve -
I need to use a php redirect file to send variables to paypal using POST method, not GET.
The variables will be called from a config file... ie, config.php
which contains:
$price = '1'
$currency = '1'
etc...
Reason: I'm using this to hide paypal button code whilst still allowing these variables to be changed using other php code.
My idea was this (not code - just process):
redirect.php
1)include config.php
2)POST: price = $price etc
3)header( 'Location: paypal address while sending post values' )
can this be done?
If so, how?
Alternatively could a "fake form" be created by redirect.php instead of performing process 3... this form would draw all the values from config.php and populate all hidden fields...
then have the php code "click" submit automatically?
If this doesn't make sense please let me know so that I can clarify...
Many thanks in advance,
Karl