This is the first kind. After loading through the JavaScript page, post the form to the third-party interface-----
Echo <<<_end
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title> is transferring to payment page ......</title>
<body onload= "Javascript:document. E_form.submit () ">
<p> is transferring to payment page .....</p>
<form method= "POST" name= "E_form" action= "https://Pay3.chinabank.com.cn/PayGate?encoding=UTF-8" >
<input type= "hidden" name= "V_mid" value= "$v _mid" >
<input type= "hidden" name= "v_oid" value= "$v _oid" >
<input type= "hidden" name= "V_amount" value= "$v _amount" >
<input type= "hidden" name= "V_moneytype" value= "$v _moneytype" >
<input type= "hidden" name= "V_url" value= "$v _url" >
<input type= "hidden" name= "V_md5info" value= "$v _md5info" >
<input type= "hidden" name= "Remark2" value= "$remark 2" >
<input type= "hidden" name= "Remark1" value= "$remark 1" >
</form>
</body>
_end;
The second mode of transmission is to use--curl post for data transfer to the server
<?php
$uri = "http://tanteng.duapp.com/test.php";
Parameter array
$data = Array (
' Name ' = ' Tanteng '
' Password ' = ' password '
);
$ch = Curl_init ();
Print_r ($ch);
curl_setopt ($ch, Curlopt_url, $uri);
curl_setopt ($ch, Curlopt_post, 1);
curl_setopt ($ch, Curlopt_header, 0);
curl_setopt ($ch, Curlopt_returntransfer, 1);
curl_setopt ($ch, Curlopt_postfields, $data);
$return = curl_exec ($ch);
Curl_close ($ch);
Print_r ($return);
Accept the PHP page remote server:
<?php
if (isset ($_post[' name ')) {
if (!empty ($_post[' name ')) {
echo ' Hello, ', $_post[' name ']. '! ‘;
}
}
?>
About the third-party interface to pay when the use of post-submission method, there are two kinds of is through curl, one is through JS when the page loaded after the jump