For an example, here we are fetching the PHP post variables like status, firstname etc. using PHP code.
<!DOCTYPE html>
<html>
<body>
<?php
$status=$_POST["status"];
$firstname=$_POST["firstname"];
$amount=$_POST["amount"];
$txnid=$_POST["txnid"];
$pid=$_POST["pId"];
$productinformation=$_POST["productinfo"];
echo "<h3>Thank You, " . $firstname .".Your order status is ". $status .". </h3>";
echo "<h4>Your transaction id for this transaction is ".$txnid.".</h4>";
echo "<h4>We have received a payment of Rs. " . $amount . ". </h4>";
echo "<h4>Your P Id is " . $pid . "</h4>";
?>
</body>
</html>
How to access these POST variables without using PHP page?
Edit: Thanks all for your response. I am not sure why people are downvoting my question. I have spent lot of time to analyse it myself and finally thought of deciding to ask here.
Please find below some more information.
Suppose there is a payment gateway which is sending some response parameters after the completion of transaction. The response parameters are being sent by a PHP post command to the URL that is already provided to the payment gateway while initiating the transaction. We can capture these response parameters using the above code in PHP. I want to know if there is another way where I can capture these response parameters without using a PHP page.