document.getElementById("subtotal").value = "$" + subTotal.toFixed(2);
document.getElementById("tax").value = "$" + tax.toFixed(2);
document.getElementById("total").value = "$" + total.toFixed(2);
to this:
document.getElementById("subtotal").value = "�" + subTotal.toFixed(2);
document.getElementById("tax").value = "�" + tax.toFixed(2);
document.getElementById("total").value = "�" + total.toFixed(2);
&it body &it
&it div id="frame" &it
&it div class="heading" &it Duncan's Just-In-Time Donuts &it/div &it
&it div class="subheading" &it All donuts 50 pence each, cake or glazed! &it /div &it
&it div id="left" &it
&it img src="donuttime.png" alt="Just-In-Time Donuts" /& it
& it/div &it
&it form name="orderform" action="donuts.php" method="POST" &it
<div class="field" &it
Name: & it input type="text" id="name" name="name" value="" / &it
&it /div &it
&it div class="field" &it
# of cake donuts: &it input type="text" id="cakedonuts" name="cakedonuts" value=""
onchange="updateOrder();" / &it
&it /div &it
&it div class="field" &it
# of glazed donuts: &it input type="text" id="glazeddonuts" name="glazeddonuts" value=""
onchange="updateOrder();" / &it
&it /div &it
&it div class="field" &it
Minutes 'til pickup: &it input type="text" id="pickupminutes" name="pickupminutes" value="" / &it
&it /div &it
&it div class="field" &it
Subtotal: &it input type="text" id="subtotal" name="subtotal" value="" readonly="readonly" / &it
&it /div &it
&it div class="field" &it
Tax: &it input type="text" id="tax" name="tax" value="" readonly="readonly" / &it
&it /div &it
&it div class="field" &it
Total: &it input type="text" id="total" name="total" value="" readonly="readonly" / &it
&it /div &it
&it div class="field" &it
&it input type="button" value="Place Order" onclik="placeOrder(this.form);" / &it
&it /div &it
&it /form &it
&it /div &it
&it /body &it
&it /html &it
&it html &it
&it body &it
&it ?php
$num = rand(1000, 10000);
$name = $_POST['name'];
$minutes = $_POST['pickupminutes'];
$total = $_POST['total'];
echo "&it h1 &it Duncan's Just-In-Time Donuts &it /h1 &it";
echo "&it h2 &it Order Confirmation &it /h2 &it";
echo "&it strong &it Order #" . $num . "&it /strong&it &it br / &it";
echo "Customer name: " . $name . "&it br / &it";
echo "Ready in: " . $minutes . " minutes &it br / &it";
echo "Total: &it em &it" . $total . "&it /em &it";
? &it
&it /body &it
&it /html &it
Surfs up space ponies, I'm making gravy without this lumpy, tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|