1
양식을 사용하여 기부금의 item_name과 금액을 페이지의 로컬 PHP 스크립트로 보내지 만, 스크립트는 paypal.com으로 보내며 기부 페이지는 보내지 않습니다. 나는 아무것도 잘못 보는 것이 아니라 모두 체크 아웃하지만 그 일을하지는 않습니다.cURL 및 Paypal이 작동하지 않습니다.
가 가<form action="http://example.net/beta/index.php" method="post" class="payPalForm" id="paypal">
<div>
<div class="formRow">
<div class="hidden" id="error" style="width:100%"><h3> I'm sorry, that STEAM ID you entered was incorrect.</h3></div>
</div>
<div class="formRow">
<label for="field0">
Steam ID<span class="star">*</span>: </label>
<input type="text" name="item_name" id="item_name" class="textField required" />
</div>
<div class="formRow">
<label for="field2">
Amount: </label>
<select name="amount" id="field2" class="select">
<option value="5">$5</option>
<option value="10">$10</option>
<option value="15">$15</option>
<option value="20">$20</option>
<option value="25">$25</option>
<option value="30">$30</option>
<option value="35">$35</option>
</select>
</div>
<div class="formRow">
<input type="submit" value="Donate" id="donatebtn" onclick="return verifySteamID()" />
</div>
</form>
이 그렇지 않으면 paypal.com에 갈 수 없을 것 그것은 스크립트로 보내 않습니다
그 언급되지 않기 때문에 : 그것은 전송
<?php
function datapost($URLServer,$postdata)
{
$agent = "Mozilla/5.0";
$cURL_Session = curl_init();
curl_setopt($cURL_Session, CURLOPT_URL,$URLServer);
curl_setopt($cURL_Session, CURLOPT_USERAGENT, $agent);
curl_setopt($cURL_Session, CURLOPT_POST, 1);
curl_setopt($cURL_Session, CURLOPT_POSTFIELDS,$postdata);
curl_setopt($cURL_Session, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($cURL_Session, CURLOPT_FOLLOWLOCATION, 1);
$result = curl_exec ($cURL_Session);
}
$htmlsource= datapost("https://www.paypal.com/cgi-bin/webscr","cmd=_donations&[email protected]¬ify_url=http://example.net/donate/paypal.php?action=ipn&return=http://example.net/donate/thankyou.php&rm=2&no_note=1&cbt=Back&no_shipping=1&lc=US¤cy_code=USD&item_name=".$_POST['item_name']."&amount=".$_POST['amount']."&bn=PP-DonationsBF:btn_donate_LG.gif:NonHostedGuest");
?>
그리고 형태 : 다음은 로컬 스크립트입니다 다른 곳. 왜 작동하지 않는지, 어떤 생각인지 이해가 안되니?
아무도 없습니까? 한 사람 아니야?! – Harry