Hello
I am working with an external perl script. I can submit something like
this:
<form target="mycart" action="https://www.website.com/cgi-bin/"
method="post">
<input type="image" src="https://www.website.com/btn/click-but.gif"
border="0"
name="submit" alt="Make payments with website!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="online@m ydomain.com">
<input type="hidden" name="item_name " value="Widget 1 User (GB)">
<input type="hidden" name="item_numb er" value="Widget1U K">
<input type="hidden" name="amount" value="30.00">
<input type="hidden" name="no_shippi ng" value="1">
<input type="hidden" name="currency_ code" value="GBP">
<input type="hidden" name="lc" value="GB">
Then I stick a button on my web page and that is fine.
But I would rather make this dynamic. Eg I would have a dropdown box where
user could select eg 1, 2, 3 etc User and amount would then be different
value. Then when I post to the cart I can send the relevant amount,
item_name, etc.
I can create the dropdown no problem but how do I make sure the dynamically
selected values are sent to mycart? eg rather than using:
<input type="hidden" name="amount" value="30.00"> - which is static, I will
have a variable called amount, where I dynamically set the vlaue.
Angus Comber
I am working with an external perl script. I can submit something like
this:
<form target="mycart" action="https://www.website.com/cgi-bin/"
method="post">
<input type="image" src="https://www.website.com/btn/click-but.gif"
border="0"
name="submit" alt="Make payments with website!">
<input type="hidden" name="add" value="1">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="business" value="online@m ydomain.com">
<input type="hidden" name="item_name " value="Widget 1 User (GB)">
<input type="hidden" name="item_numb er" value="Widget1U K">
<input type="hidden" name="amount" value="30.00">
<input type="hidden" name="no_shippi ng" value="1">
<input type="hidden" name="currency_ code" value="GBP">
<input type="hidden" name="lc" value="GB">
Then I stick a button on my web page and that is fine.
But I would rather make this dynamic. Eg I would have a dropdown box where
user could select eg 1, 2, 3 etc User and amount would then be different
value. Then when I post to the cart I can send the relevant amount,
item_name, etc.
I can create the dropdown no problem but how do I make sure the dynamically
selected values are sent to mycart? eg rather than using:
<input type="hidden" name="amount" value="30.00"> - which is static, I will
have a variable called amount, where I dynamically set the vlaue.
Angus Comber
Comment