Hi gang!
I've been searching for a solution to this problem extensively but nothing really hits the mark.
I have a descriptive popup page that contains a PayPal order button. The normal PayPal form fields allow for the item description, fee, etc. I'd like the fee field to be variable based upon which hyperlink launched the popup.
So,
HREF click sets a variable
INPUT TYPE (hidden) named "amount" equals the variable
Specifically, the page that has been launching the popup is a standard order page. I'm adding a discounted "sale" page which would lead to the same popup description, but since the PayPal code is absolute, the user would end up paying the standard price if the click the popup's button.
I'm trying to avoid creating separate popup pages because there's already one for foreign and one for domestic, then two of each of those for each issue.
Here's the relevant code:
REFERRER PAGE
<A HREF="javascript:newWindow1('issue01dp.html')">Iss ue 1</A>
newWindow1 is defined in an external popup function.
POPUP PAGE PAYPAL FIELD
<input type="hidden" name="amount" value="9.50">
So, for example, one hyperlink would make the "amount" equal 9.50, and another hyperlink would make the resulting "amount" equal 8.50.
I'm thinking that if I could embed a number in onClick=, then call it within the form field, that'd do the trick. But I'm stuck trying to find a simple way to define the variable within this one line.