|
|
|
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?
|
|
|
|
|
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
Delete: <input type="hidden" name="undefined_quantity" value="0"> 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
|
|
|
|
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: <input type="hidden" name="undefined_quantity" value="0"> 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 <input type="hidden" name="quantity" value="xxx"> to whatever item the end user selects in the pulldown menu?
|
|
|
|
Rank: Starting Member
Groups: Registered
Joined: 9/16/2002 Posts: 2,960 Location: ,
|
<select name="quantity"> <option value="1" selected>1 <option value="2">2 </select> Patrick Breitenbach PayPal, Inc. Dev Net: https://www.paypal.com/pdn
|
|
|
|
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]<select name="quantity"> <option value="1" selected>1 <option value="2">2 </select> 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.
|
|
|
|
Guest
|
YAFVision Theme by Jaben Cargman (Tiny Gecko)Powered by YAF |
YAF © 2003-2009, Yet Another Forum.NETThis page was generated in 0.212 seconds.