# success.php支付页面;支付成功后点击跳转到抢票页面
## 1、接收抢票页面传过来的票据
~~~
<?php
//ids=cart-item-6_10|cart-item-5_10|
if (isset($_GET['ids']) && !empty($_GET['ids'])) {
$ids = explode("|", $_GET['ids']);
foreach ($ids as $id) {
if ($id == "") {
continue;
}
$arr[] = substr($id, 10);
}
function http_post($data,$url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$res = curl_exec($ch);
curl_close($ch);
return $res;
}
//发送到后端,【注意:这个端口跟抢票页面不是一个端口】
http_post($arr, 'http://192.168.33.10:9999');
}
?>
~~~