I have checkbox base on db. If user check checkbox then it
has differenct cost and if not checked then it has different cost
and finally i would like to calculate total and dispaly in text box
on fly before submiting the form. I am not sure how it will work on
fly. Please advice thanx.
On your form, put a hidden field right before the check box.
Give it a value of the 1st price. Give your check box the 2nd
price. Make sure they have the same name.
On your action page, use listlast to get the price.