[ic] Setting Values and using Pay Pal

Rodney Wallin interchange-users@interchange.redhat.com
Thu Dec 13 12:32:00 2001


BRIEF: Wanting to be able to set a variable depending on what is selected so
that I can then show information based on that variable.

DETAIL: On the results of the search I have the option if someone wants to
use their credit card and proceed to add the item to the IC Cart or if they
would perfer to use Pay Pal and place the item in the Pal Pal Cart. This was
not a problem to set up. What i want to do now is limit the possibility for
the end user to place an item in both carts.

I want to be able to show both options initially then after they place an
item in a cart it sets a variable that I can check to only show that cart
option from that moment on.      
     i.e. if they choose pay pal cart initially then from that point on that
is all they can choose. of course I would want to clear this variable at the
end of the session.

CODE:
Here's the current code I am using without setting variables. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<table border="0" width="100%">
	<tr>
		<td width="37%">
		     <center><b><font face="Arial" size="1">USE CREDIT
CARD</font></b><input type="submit" value="Buy it Now!"></center>
		</td>
                        <td width="63%">
		<center><b><font face="Arial" size="1">USE PAY
PAL</font></b><br><a href="#"
onclick="window.open('https://www.paypal.com/cart/add=1&business=paypal%40yo
uraccounthere.com&item_name=[item-description]-[item-field
title]&item_number=[item-code]&amount=[item-price]','cartwin','width=600,hei
ght=400,scrollbars,location,resizable,status');"><img
src="http://images.paypal.com/images/sc-but-01.gif" border="0" width="70"
height="35"></a></center>
		</td>
	</tr>
</table>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This actually works quite well to pass the info into the Pay Pal Cart. Any
help would be appreciated or if there are other options out there using Pay
Pal.

Thanks in advance
Rodney