我期待創建一個捐贈和下載腳本,允許你把自己的金錢數量,然後它會自動下載並帶你到貝寶。 0也需要成爲期權金額。這裏是一個例子:http://www.losttype.com/font/?name=liberator貝寶捐出你喜歡的東西下載
我已經創建了PayPal捐贈腳本並進行了編輯以添加輸入金額,但任何人都可以建議一種方法來自動開始下載並允許0作爲金額?
也許我應該重新開始,我有以下的代碼,允許用戶通過PayPal捐贈。這有一個輸入金額,並在新窗口中將用戶重定向到paypal。 提交以開始下載的最佳方式是什麼?即使這個人投入零,而他們可以在另一個窗口捐贈。 代碼:
<div class="donate">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_donations">
<input type="hidden" name="business" value="myemail">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="item_name" value="info">
<table> <tr><td>Enter your Amount:</td></tr><tr><td><input type="text" name="amount" value=""></td></tr> </table>
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donate_LG.gif:NonHosted">
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_donate_LG.gif" border="0" name="submit">
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
你的問題是什麼? – Repox 2012-02-18 09:36:21
這怎麼辦?任何人都可以幫我創建腳本來做到這一點? – Hue 2012-02-18 10:08:27
不是沒有具體的問題 - 我們在這裏幫助您解決您面臨的特定問題;不要給你所有你需要的代碼。 – Repox 2012-02-18 10:22:21