0

Hi there folks!

I´m pretty blind regarding Callback Url. I only know that someone will dump in information that i want to see. Thats it.

I have this to fill out:

http://img18.imageshack.us/img18/1912/clickatell.jpg

And this has an explanation: (Full Version PDF here)

http://img29.imageshack.us/img29/5005/manuald.jpg

I think the XML GET callback URl is the easiest way to read.
The website of the Callback URL is: http://www.pcsilva.eu/

How to do this? Very very thanks!

2
Contributors
2
Replies
4
Views
8 Years
Discussion Span
Last Post by pee2002
0

I´m pretty blind regarding Callback Url. I only know that someone will dump in information that i want to see. Thats it.

That's a very brief description of what you want and more detail of your goal will be needed. I do know however if you use the http post or http get options you can retrieve the data from the submitted page via $_GET or $_POST arrays.

0

Problem Solved!

Here is the solution:

<?php


    // Declare variables for url string
    $url = $_SERVER['QUERY_STRING'];

	$api_id = $_GET['api_id'];
	$apiMsgId = $_GET['apiMsgId'];
	$cliMsgId = $_GET['cliMsgId'];
	$timestamp = $_GET['timestamp'];
	$to = $_GET['to'];
	$from = $_GET['from'];
	$status = $_GET['status'];
	$charge = $_GET['charge'];
	
	

	$con = mysql_connect("xxxxxxxxxxxx","xxxxxxxxxxxx","xxxxxxxxxxxx");
	if (!$con)
	  {
	  die('Could not connect: ' . mysql_error());
	  }
	
	mysql_select_db("xxxxxxxxxxxx", $con);
	
	$sql = "
		INSERT INTO `xxxxxxxxxxxx`.`Status` (
		`ID` ,
		`api_id` ,
		`apiMsgId` ,
		`cliMsgId` ,
		`Timestamp` ,
		`to` ,
		`from` ,
		`charge` ,
		`status`
		)
		VALUES (
		NULL , '$api_id', '$apiMsgId', '$cliMsgId', '$timestamp', '$to', '$from', '$charge', '$status'
		);
	 ";
	
	$result = mysql_query($sql, $con) or die(mysql_error());
	
	mysql_close($con);
?>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.