I have a script, that takes the value from two select tags, and then do a simple math multipy to calculate a price. The thing I need, but cannot figure out is, how to get that calculated price, and use it as an php variable in a POST form.
As the calculated price is dynamic, how can I archive this?
If you want to send that value directly to a PHP script, you can use the jQuery
postmethod:Alternatively, you could set the
valueof a hidden input element to your calculated value, so that it can be submitted along with the rest of your form:HTML: