YetAnotherForum
Welcome Guest Search | Active Topics | Log In | Register

Changing quanity value from a pulldown menu... Options
cool_cat
#1 Posted : Tuesday, February 04, 2003 6:15:51 PM
Rank: Starting Member

Groups: Registered

Joined: 2/4/2003
Posts: 3
Location: ,
I have a pulldown menu for a single item purchase. This pull down menu is populated with numbers 1, 2, 3, and 4. I want to set the <input type="hidden" name="quantity" value="xxx"> value to what is selected from the pulldown menu. I don't want the buyer to be able to change the quantity once he gets to paypal's page. Is this possible? This is what the html looks like so far: <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="quantity" value="1"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="myaddr@addr.com"> <input type="hidden" name="undefined_quantity" value="0"> <input type="hidden" name="item_name" value="My stuff, 1-4 of 'em"> <input type="hidden" name="item_number" value="1"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="currency_code" value="USD"> <input type="hidden" name="no_shipping" value="1"> <table><tr><td><input type="hidden" name="on0" value="Number of items">1-4, $5.00 each</td><td> <select name="os0"> <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 </select> </td></tr></table> ****THIS IS THE VALUE I WANT TO SET TO WHAT WAS SELECTED IN THE ****PULLDOWN MENU!!!! <input type="hidden" name="quantity" value="1"> <input type="image" src="https://www.paypal.com/images/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!" > </form> Can anybody PLEASE help me?
Sponsor  
 
paypal_pb
#2 Posted : Tuesday, February 04, 2003 8:18:33 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
Delete: &lt;input type="hidden" name="undefined_quantity" value="0"&gt;

That flag works by presence or absence, not its value. There may be an error in the documentation.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
cool_cat
#3 Posted : Tuesday, February 04, 2003 9:34:27 PM
Rank: Starting Member

Groups: Registered

Joined: 2/4/2003
Posts: 3
Location: ,
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by paypal_pb
[br]Delete: &lt;input type="hidden" name="undefined_quantity" value="0"&gt;

That flag works by presence or absence, not its value. There may be an error in the documentation.

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

OK, so if I delete that, how to I change the
&lt;input type="hidden" name="quantity" value="xxx"&gt;
to whatever item the end user selects in the pulldown menu?

paypal_pb
#4 Posted : Tuesday, February 04, 2003 9:50:44 PM
Rank: Starting Member

Groups: Registered

Joined: 9/16/2002
Posts: 2,960
Location: ,
&lt;select name="quantity"&gt;
&lt;option value="1" selected&gt;1
&lt;option value="2"&gt;2
&lt;/select&gt;

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
cool_cat
#5 Posted : Tuesday, February 04, 2003 10:13:57 PM
Rank: Starting Member

Groups: Registered

Joined: 2/4/2003
Posts: 3
Location: ,
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">Originally posted by paypal_pb
[br]&lt;select name="quantity"&gt;
&lt;option value="1" selected&gt;1
&lt;option value="2"&gt;2
&lt;/select&gt;

Patrick Breitenbach
PayPal, Inc.
Dev Net: https://www.paypal.com/pdn
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Thank so much for your help. It works great.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAFVision Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.212 seconds.