Reply to sending hidden values AND option values at the same time ?

Your name:

Reply:


Posted by Frederick Smith on 09/12/06 04:52

Hi there,

I have been asked to help with some html to get a transaction started on a
PayPal shopping cart.

There's a dropdown with option values for the sizes, and another for the
colours of the products. I can get the "add to shopping cart" button to
work, and send the values to the PayPal site, and then either process the
transaction or continue shopping.... but.....

The problem is that a couple of the products comes in 3 sizes, small, medium
and large - and they are sold for 3 different prices, but the price for
each item is sent as a single fixed "hidden variable" in the same form.

Is there some way that I can get the drop down to send different hidden
values for the amount of the transaction AND the size.

something like ....

<option value="Small">Small</option> ( some operator here ) <input
type="hidden" name="amount" value="5">
<option value="Medium">Medium</option> ( some operator here ) <input
type="hidden" name="amount" value="10">
<option value="Large">Large</option> ( some operator here ) <input
type="hidden" name="amount" value="20">


might do the trick ... but I dont even know of its possible to join the
parameters together, let alone what sort of operator or syntax to use.
If its just impossible, I will resort to perl scripting - but it would be
nice to know that it could be done simply in html


Any suggestions



Frederick

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация