Hi everyone, I am working on a wee small project using cURL.
From the documentation, it states
"The Server will HTTP POST a string in a parameter called (INCOMING)" to the given callback URL.
I know the list of parameters in the string as this is given in the documentation,
What I dont know how to do, is "echo" the value(s) of each parameter in the string.
I have tried using _POST
foreach($_POST as $key=>$value){
echo $key, ' => ', $value, "<br/>\n";
}
$QueryID = $_POST['QueryID'];
if($QueryID) {
echo '<p/>QueryID: ', $QueryID, "<br/>\n";
}
else {
echo '<p>No ID parameter.</p>';
}
I have also tried using _GET
foreach($_GET as $key=>$value){
echo $key, ' => ', $value, "<br/>\n";
}
$QueryID = $_GET['QueryID'];
if($QueryID) {
echo '<p/>QueryID: ', $QueryID, "<br/>\n";
}
else {
echo '<p>No ID parameter.</p>';
}
But I keep getting "No ID parameter"....
If someone could show me how to do this, I would be forever greatful :)
Hope someone can help...