I am using PayPal subscription I have issue with paypal subscribe button. I have subscribe button with 4 subscription options. I want to add this selected option in query string. So that my query string will look like this:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-lick&hosted_button_id=Y1TOJTYQ2ALDJ&os0=Silver Membership
在以上询问中,我想为0参数确定选定的选择。
我的法典:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="X9TEPZ7Q2ALDJ"/>
<table>
<tr><td><input type="hidden" name="on0" value="Memberships">Memberships</td></tr><tr><td>
<select name="os0">
<option value="Registration - One month">Registration - One month : $1.00USD - monthly</option>
<option value="Trial Membership">Trial Membership : $25.00USD - monthly</option>
<option value="Silver Membership">Silver Membership : $250.00USD - yearly</option>
<option value="Gold Membership">Gold Membership : $400.00USD - yearly</option>
</select>
</td></tr>
</table>
<input type="hidden" name="currency_code" value="USD"/>
<input type="image" src="https://www.paypalobjects.com/en_GB/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal — The safer, easier way to pay online."/>
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"/>
<a id="paypalDonate" target="_blank" href ="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y1TOJTYQ2ALDJ&os0=document.getelementbyid(os0).value">
<img border="0" id="payPalImage" src="https://www.paypalobjects.com/en_GB/i/btn/btn_subscribeCC_LG.gif" alt="Donate to DevtheWeb.NET" />
</a>
</form>