aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--order.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/order.php b/order.php
index 8872c99..5384196 100644
--- a/order.php
+++ b/order.php
@@ -117,6 +117,7 @@ function genoption($id, $name) {
var ssd = Number(document.getElementById("ssd").value);
var price = (1*cpus**2) + (0.5*mem**2) + (0.02*ssd**2);
document.getElementById("calculated").innerHTML = "Calculated price: " + price + " €/mo";
+ document.getElementById("billing").value = price + " €/mo";
} else {
//document.getElementById("calculated").innerHTML = "Calculated price: " + service["billing"];
document.getElementById("billing").value = service["billing"];