Form Help

Discussion in 'Web Design and Development' started by zdobson, Apr 10, 2008.

  1. macrumors 6502

    Nov 9, 2007
    I have an order form that I'm trying to make.

    Is it possible to write a script so that the amount from the "total" box will appear in a text box on a new page? Or even to have one text field mirror another? The point of this will be for the total to end up in a box linked to a google merchant account. Or if there's an easier way to do this, I'm open to suggestions. Here is the javascript I currently use in the form:

    function displayprice()
    var a = document.order.product.value;
    var b = document.order.qty.value;
    var c = document.order.productb.value;
    var d = document.order.qtyb.value;
    var e = document.order.productc.value;
    var f = document.order.qtyc.value;
    var g = document.order.productd.value;
    var h = document.order.qtyd.value;
    var i = document.order.producte.value;
    var j = document.order.qtye.value;
    var k = document.order.shipping.value;
    var l =;
    document.order.totalprice.value = a*b
    document.order.totalpriceb.value = c*d
    document.order.totalpricec.value = e*f
    document.order.totalpriced.value = g*h
    document.order.totalpricee.value = i*j = ((a*b) + (c*d) + (e*f) + (g*h) + (i*j) + (k*1) + l);

Share This Page