Question
PHP/MySQL: Get value from one field, subtract 2, multiply by 20, and insert value into another column on form submit
Hello all,
I'm pulling my hair out--thank you for any help you can give me.
I have a form that a person fills out that has a field that asks "How
many visitors including you" and I'd like them to type in a number, and
on submit of the form, have that value -2 multiplied by 20 and inserted
into a "total cost" column.
I'm using the standard DW server behaviors and I've searched the
internet. How do I perform basic math on that value and insert it into
the database?
If you have any pointers, that would be great.
Thank you!
-John
I'm pulling my hair out--thank you for any help you can give me.
I have a form that a person fills out that has a field that asks "How
many visitors including you" and I'd like them to type in a number, and
on submit of the form, have that value -2 multiplied by 20 and inserted
into a "total cost" column.
I'm using the standard DW server behaviors and I've searched the
internet. How do I perform basic math on that value and insert it into
the database?
If you have any pointers, that would be great.
Thank you!
-John
