|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Pay pal subscriptions
I am building a web site in FP 2002 with html. I am using a pay pal subscription for monthly payments.
I have to be able to have the 4.25 and the 12.75 work within a drop down window. Once you click on one of the prices you then go to the pay pal button. When you click on that button it then registers with pay pal for the chosen amount. The way I have it written no matter which amount I click on the amount 12.75 always comes up. What do I need to do. <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick-subscriptions"> <input type="hidden" name="business" value="yongued@bellsouth.net"> <input type="hidden" name="no_note" value="1"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="on1" value="Prices">Prices</td> <td> <select name="os1"> <option value="Select Monthly Payment">Select Monthly Payment <option value=<input type="hidden" name="a3" value="4.25">4.25 <option value=<input type="hidden" name="p3" value="12"> <option value=<input type="hidden" name="t3" value="M"> <option value=<input type="hidden" name="src" value="1"> <option value=<input type="hidden" name="sra" value="1"> <option value=<input type="hidden" name="a3" value="12.75">12.75 <option value=<input type="hidden" name="p3" value="12"> <option value=<input type="hidden" name="t3" value="M"> <option value=<input type="hidden" name="src" value="1"> <option value=<input type="hidden" name="sra" value="1"> </select></td> <td> <input type="hidden" name="no_note" value="1"> <table width="387"><tr><td width="221"><input type="hidden" name="on0" value="2004"> </td> <td width="156"><select name="os0"><option value="Miami Dolphins ">Miami Dolphins <option value="New York Jets">New York Jets<option value="Buffalo Bills">Buffalo Bills<option value="New England Patriots">New England Patriots</select> </td></tr></table> <option value<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but31.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> <input type="hidden" name="a3" value="4.25"><input type="hidden" name="p3" value="12"><input type="hidden" name="t3" value="M"><input type="hidden" name="src" value="1"><input type="hidden" name="sra" value="1"> <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but31.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" width="72" height="32"> <input type="hidden" name="a3" value="12.75"><input type="hidden" name="p3" value="12"><input type="hidden" name="t3" value="M"><input type="hidden" name="src" value="1"><input type="hidden" name="sra" value="1"></form></form> |
|
#2
|
|||
|
|||
|
i don't understand the approach you're taking here. first, be safe and add </option> after each item in the select list. ie:
<option value="Select Monthly Payment">Select Monthly Payment</option> second, what is this? <option value=<input type="hidden" name="a3" value="4.25">4.25 it looks like you're trying to put a hidden element within an element... now i'm no expert, but i'm not sure you can do this. in fact, your p3, t3, src, sra values are identical whether the user chooses the 4.25 or 12.75, so don't bother trying to put their values in options. here's what i'd do: <select name="os1"> <option value="Select Monthly Payment">Select Monthly Payment</option> <option>4.25</option> <option>12.75</option> </select> <input type="hidden" name="p3" value="12"> <input type="hidden" name="t3" value="M"> <input type="hidden" name="src" value="1"> <input type="hidden" name="sra" value="1"> as for your a3 value... could you name your select box a3, or must it be os1? if you need them separate, you could probably use javascript to change the value of a hidden input element when the option is changed in the os1 select box. so when the user changes the select box, call a javascript function to modify the hidden a3 value... something like <input type="hidden" name="a3" value=""> <select name="os1" onchange="seta3value(this)"> (i'm not sure how you'd have to pass the value of the select box, that's just a guess) and then your function would be something like function seta3value(os1value) { form.a3.value = os1value; } i'm not positive all of this would work, but those are the approaches i'd try out.... hope this is of some help. |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Pay pal subscriptions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|