Is your script even written in PHP? If so...does it have something like
// Form handlers will have lines similiar to this one..
$variable = $_POST['variable'];
Unless you can tell me more details on how your script interacts with their server, I can't really give you accurate advice.
Can you tell me if their server POSTs to your initially (again, script will have something similar to code above) ?
Assuming, that the above is true, I found the following example at http://www.phpfreaks.com/tutorials/49/2.php
switch($_REQUEST['cmd']){
default:
include 'form.html';
break;
case "post":
$postfields = array();
$postfields[] = array("firstname", $_POST['firstname']);
$postfields[] = array("lastname", $_POST['lastname']);
$postfields[] = array("ccnumber", $_POST['ccnumber']);
$postfields[] = array("expmonth", $_POST['expmonth']);
$postfields[] = array("expyear", $_POST['expyear']);
foreach($postfields as $subarray) {
list($foo, $bar) = $subarray;
$bar = urlencode($bar);
$postedfields[] = "$foo=$bar";
}
$urlstring = join("\n", $postedfields);
$urlstring = ereg_replace("\n", "&", $urlstring);
// echo $urlstring;
$ch = curl_init("http://mysite.com/curl/curlresponse.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $urlstring);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, "http://www.mysite.com/payment_form.html");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
$response_start = strPos($data, "Server Response:");
$response_end = strPos($data, "\n");
$temp_code = substr($data, $response_start, ($response_end - $response_start));
$temp_code = str_replace("Server Response:", "", $temp_code);
$temp_code = strip_tags($temp_code);
$transaction_code = trim($temp_code);
switch($transaction_code){
case "Transaction Success!":
//redirect person to thank you page
echo "Thank you for your purchase!";
break;
default:
echo '<font color="red">Transaction Error: '.$transaction_code.'</font>';
include 'form.html';
break;
}
break;
}
if ezbonds uses PHP to send information to your server, they will use a similar script.