Hello! There is a task with which so far could not cope. There is:

document.getElementById('product-price').innerHTML = rezultatRadio + totalPrice; 

what I need to do (as I understand it, I need to pass the value)

 'product-price' 

of

 document.getElementById('product-price').innerHTML 

in php-variable type

 $product_price 

Display on the same page the result is as follows:

 <output id="product-price"></output> 

And you need to transfer the same result with the mail () function, and most likely with a variable or a PHP session, but the decision has not been made yet ... Thanks in advance!

    1 answer 1

     var varName = 'asd'; $.post('/server/url', {myVar:varName}); <? $product_price = floatVal($_POST['myVar']); 
    • Pavel Vershinin , and how to implement it with my code ???? Yet the action takes place on the same page order.php. It displays both the order itself, and the change in the amount, taking into account the chosen type of delivery and sending the order via mail ... - arhat78