Code: Select all
echo "status=pass" . "\n";
echo "option_count=1" . "\n";
echo "s1option=LTL Freight Shipping" . "\n";
echo "s1price=300.00";
Code: Select all
file_put_contents("post.txt", "3" . print_r($_REQUEST, true));
Thanks
Code: Select all
echo "status=pass" . "\n";
echo "option_count=1" . "\n";
echo "s1option=LTL Freight Shipping" . "\n";
echo "s1price=300.00";
Code: Select all
file_put_contents("post.txt", "3" . print_r($_REQUEST, true));
Code: Select all
// Read in POST parameters sent by ShopSite
$stdin = fopen("php://stdin","r");
fscanf($stdin,"%{$SERVER['CONTENT_LENGTH']}s",$query_string);
// And now we split the params into the $params array.
parse_str($query_string,$params);
file_put_contents("post.txt", print_r($params, true));
Code: Select all
$stdin = file_get_contents("php://input");
parse_str($stdin,$params);
file_put_contents("post.txt", print_r($params, true));
Code: Select all
echo "status=pass" . "\n";
echo "option_count=1" . "\n";
echo "s1option=LTL Freight Shipping to " . $params["cust_zip"] . "\n";
echo "s1price=300.00";