Hi,
i do have the following in a simple form for a formmailer:
<input type="radio" value="product I" name="product">
<input type="radio" value="product II" name="product">
<input type="radio" value="product III" name="product">
Additionally i'd like to add hidden fields for prices of those products:
<input type="hidden" name="product I" value="100.00">
<input type="hidden" name="product II" value="200.00">
<input type="hidden" name="product III" value="300.00">
The user chooses a product and the script should add the right price to a variable called "product_price".
Is there any chance to control what product the user chooses and then automatically choosing the right price?
Would it be possible to create a small perl routine what checks if those hidden fields are existing and adding the right price to the choosen product (after the user sent the form)?
Thanks for your hints!
i do have the following in a simple form for a formmailer:
<input type="radio" value="product I" name="product">
<input type="radio" value="product II" name="product">
<input type="radio" value="product III" name="product">
Additionally i'd like to add hidden fields for prices of those products:
<input type="hidden" name="product I" value="100.00">
<input type="hidden" name="product II" value="200.00">
<input type="hidden" name="product III" value="300.00">
The user chooses a product and the script should add the right price to a variable called "product_price".
Is there any chance to control what product the user chooses and then automatically choosing the right price?
Would it be possible to create a small perl routine what checks if those hidden fields are existing and adding the right price to the choosen product (after the user sent the form)?
Thanks for your hints!