I am having problem retrieving $_REQUEST array key/value i submintted using post method. here is the simple form I am posting:
[code=html]
<html>
<head>
</head>
<body>
<form action="http://192.168.130.51: 8080/merchantAPI/postPairs" method="post">
Request Type: <input type="text" name="reqType" value="CCSale"/><br />
Merchant ID: <input type="text" name="merchantI D" value="12"/><br />
Merchant Key: <input type="text" name="merchantK ey" value="key"/><br />
Refrence Num: <input type="text" name="reference Num" value="1"/><br />
Total Amount: <input type="text" name="chargeTot al" value="1"/><br />
Credit Card#: <input type="text" name="creditCar dNumber" value="37323538 7881007"/><br />
Exp Month: <input type="text" name="creditCar dExpMonth" value="12"/><br />
Exp Year: <input type="text" name="creditCar dExpYear" value="2008"/><br />
<input type="submit" name="submit" value="Submit" >
</form>
</body>
</html>
[/code]
After submitting the form I want to view/print the response from the server using a simple code such as:
[code=php]
foreach($_REQUE ST as $key=>$value)
echo("<tr><td>$ key</td><td>$value</td></tr>");
[/code]
how can i do this. can anyone please help
[code=html]
<html>
<head>
</head>
<body>
<form action="http://192.168.130.51: 8080/merchantAPI/postPairs" method="post">
Request Type: <input type="text" name="reqType" value="CCSale"/><br />
Merchant ID: <input type="text" name="merchantI D" value="12"/><br />
Merchant Key: <input type="text" name="merchantK ey" value="key"/><br />
Refrence Num: <input type="text" name="reference Num" value="1"/><br />
Total Amount: <input type="text" name="chargeTot al" value="1"/><br />
Credit Card#: <input type="text" name="creditCar dNumber" value="37323538 7881007"/><br />
Exp Month: <input type="text" name="creditCar dExpMonth" value="12"/><br />
Exp Year: <input type="text" name="creditCar dExpYear" value="2008"/><br />
<input type="submit" name="submit" value="Submit" >
</form>
</body>
</html>
[/code]
After submitting the form I want to view/print the response from the server using a simple code such as:
[code=php]
foreach($_REQUE ST as $key=>$value)
echo("<tr><td>$ key</td><td>$value</td></tr>");
[/code]
how can i do this. can anyone please help
Comment