Reply
Drop Down List Help
Old 05-09-2006, 10:44 PM Drop Down List Help
Junior Talker

Posts: 2
Hello all. I'm not much of a programmer {gulp} however I have an issue. I have a drop down list with 10 items, all different values. I'd like to be able to pass the value a user selects from the list via a 'Click to order' buton that sends the value to a shopping cart so to speal.

Here is the code I have thus far:

<form action="https://www.viaKLIX.com/process.asp" method="post">
<p align="center">
<input type="hidden" name="ssl_merchant_id" value="654321">
<input type="hidden" name="ssl_user_id" value="aquapad">
<input type="hidden" name="ssl_pin" value="123456">
<input type="hidden" name="ssl_amount" value="??????">
<input type="hidden" name="ssl_customer_code" value="1">
<input type="hidden" name="ssl_cvv2" value="Present">
<input type="hidden" name="ssl_cvv2cvc2" value="">
<input type="hidden" name="ssl_invoice_number" value="Aqua1-001">
<input type="hidden" name="ssl_description" value="Aqua Pad - 5 pad package">
<span class="style9">Quantity:</span>
<select name="quantity" id="quantity">
<option value="9.25" selected>1</option>
<option value="15.00">2</option>
<option value="20.75">3</option>
<option value="26.50">4</option>
<option value="32.25">5</option>
<option value="38.00">6</option>
<option value="43.75">7</option>
<option value="49.50">8</option>
<option value="55.25">9</option>
<option value="61.00">10</option>
</select>
</p>
<p align="center"><input type="submit" value="Click To Order">
<br>
<br>
<a href="http://www.mastercard.com/" target="_blank"><img src="../images/mc_vs_accpt_h_023_gif.gif" width="75" height="23" border="0"></a></p>
</form>

What do I need to do to get the value selected in the drop down list posted in the ?????? value area? I hope this isn't a huge deal. With my luck it probably is.

Thanks a ton!!
Chris

PS - Everyone can see the page as it looks by visiting:
www.nationalbias.com/test/aqua_pad3.html
canilucas is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 05-10-2006, 03:07 AM Re: Drop Down List Help
chrishirst's Avatar
Super Moderator

Posts: 11,508
Location: Blackpool. UK
simplest way would be to rename the select box to "ssl_amount" because you are not going to retrieve the quantity selected from the form as it stands.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-10-2006, 01:06 PM Re: Drop Down List Help
Junior Talker

Posts: 2
Chris,

Can you walk me through this a little more? Are you saying all I need to do to modify this form as I have it, is rename the select box? So the line would look like:

<select name="ssl_amount" id="quantity">


Or would it be the other way around? Or am I way off. Sorry I'm learning this kinda stuff

Thank you,
Chris
canilucas is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Drop Down List Help
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.14536 seconds with 13 queries