R
rob c
Hi
I'm not sure if this is the right place to ask for help on forms and radio
buttons...
In the following form, I'd like to set the value of 'item_name' based on which
radio button was selected.
If amount=14, then I want to set item_name='5x7 print'.
If amount=20, then I want to set item_name='5x7 print (drymounted)'.
<form target='paypal' action='https://www.paypal.com/cgi-bin/webscr'
method='post'>
<input type='hidden' name='add' value='1'>
<input type='hidden' name='cmd' value='_cart'>
<input type='hidden' name='quantity' value='1'>
<input type='hidden' name='on0' value='Image'>
<input type='hidden' name='os0' value=362_0515'>
<input type='hidden' name='item_name' value='5x7'>
<input checked type='radio' name='amount' value='14.00'>
<input type='radio' name='amount' value='20.00'>
<input type='image' src='../graphics/cart-add.gif' border='0' name='submit'>
</form>
The live form is here:
www.rcp.ca/webgallery/skiing/060324/pages/362_0515.htm
Thanks
Rob C
I'm not sure if this is the right place to ask for help on forms and radio
buttons...
In the following form, I'd like to set the value of 'item_name' based on which
radio button was selected.
If amount=14, then I want to set item_name='5x7 print'.
If amount=20, then I want to set item_name='5x7 print (drymounted)'.
<form target='paypal' action='https://www.paypal.com/cgi-bin/webscr'
method='post'>
<input type='hidden' name='add' value='1'>
<input type='hidden' name='cmd' value='_cart'>
<input type='hidden' name='quantity' value='1'>
<input type='hidden' name='on0' value='Image'>
<input type='hidden' name='os0' value=362_0515'>
<input type='hidden' name='item_name' value='5x7'>
<input checked type='radio' name='amount' value='14.00'>
<input type='radio' name='amount' value='20.00'>
<input type='image' src='../graphics/cart-add.gif' border='0' name='submit'>
</form>
The live form is here:
www.rcp.ca/webgallery/skiing/060324/pages/362_0515.htm
Thanks
Rob C