I want to Convert $_GET
variables to $_POST
paypal to hide return url
<?
//i want Convert $_GET variables to $_POST paypal to hide return url
$return = 'http://my site. com/tks.php?id=150';
$mypost='cmd=_cart¤cy_code=USD&business=email@gmail.com&tax_cart=0.00&handling_cart=0.00&charset=utf-8
&item_name_1=IDM Download Manager(4)&quantity_1=1&amount_1=5.00&item_number_1=1&option_index_0=0&return='.$return;
// this $mypost will be post to $posted url
// i don't want this method $posturl = 'https://www.paypal.com/cgi-bin/webscr?$mypost';
$posturl = 'https://www.paypal.com/cgi-bin/webscr?';
header("Location: $posturl");
?>
Use jQuery
and encode $return
to JSON
on client side and post it to server using POST
method type.