Setting Billing Address to Delivery

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Setting Billing Address to Delivery

    hi i am in the middle of revamping my registration pages and i am trying to
    create a form that if a check box is clicked the billing address info is used
    and the delivery address is set automatically? Anyone have any ideas? i am
    lost here!!!! Gubs

    Gubbins Guest

  2. Similar Questions and Discussions

    1. Registration / recurring billing
      I have a site with several hundred users that I am going to start charging use for. I would like to bill new users once or possibly even bill them...
    2. OT: Time Billing software for OS X?
      I have been using TimeSlips billing software since their version 1 from the 1980s. Excellent software but they focused very successfully on the legal...
    3. ASP/CDO verify email address from Exchange 2000 non-delivery report
      Apologies for the cross-post but i thought i'd aim for the largest audience possible. I have a web site that users have to register to with their...
    4. Help with Setting up HTTP address
      Can anyone give me some information on how to setup a http address. I have a Siemens Speedstream SS2602 Router. I have some experience with FTP but...
    5. Billing / Invoice scripts?
      I am looking for a script to automate the billing of my web hosting and development clients. I've looked at CBMS and WebHost. Both look as though...
  3. #2

    Default Re: Setting Billing Address to Delivery

    I use a JavaScript Jules includes in his example for CharonCart.

    function MM_callJS(jsStr) { //v2.0
    return eval(jsStr)
    }
    <!--
    function copytext() {
    if (document.fmreg.SameBilling.checked) {
    document.fmreg.txtBillAddress1.value=document.fmre g.txtDeliveryAddress1.value
    document.fmreg.txtBillAddress2.value=document.fmre g.txtDeliveryAddress2.value
    document.fmreg.txtBillTown.value=document.fmreg.tx tDeliveryTown.value
    document.fmreg.txtBillCounty.value=document.fmreg. txtDeliveryCounty.value
    document.fmreg.txtBillPostCode.value=document.fmre g.txtDeliveryPostCode.value
    }
    else {
    document.fmreg.txtBillAddress1.value=""
    document.fmreg.txtBillAddress2.value=""
    document.fmreg.txtBillTown.value=""
    document.fmreg.txtBillCounty.value=""
    document.fmreg.txtBillPostCode.value=""
    }
    }
    //-->

    this goes in your Javascript section for the page, or an external file if you
    so wish.

    Then for your form

    <input name="SameBilling" type="CheckBox" class="textbox" id="SameBilling"
    onClick="MM_callJS('copytext()')" value="1" >
    my organisation address is the same as my delivery address

    obviously this is set up for my form so you would need to change the field
    names.


    Originally posted by: Gubbins
    hi i am in the middle of revamping my registration pages and i am trying to
    create a form that if a check box is clicked the billing address info is used
    and the delivery address is set automatically? Anyone have any ideas? i am
    lost here!!!! Gubs



    CarlGrint Guest

  4. #3

    Default Re: Setting Billing Address to Delivery

    thanks for that i take it that i change frmreg to the name of my form? and the firld name to replace mine?

    If i am right about what i said i will try it later when i get!! ta!!

    G
    Gubbins Guest

  5. #4

    Default Re: Setting Billing Address to Delivery

    thanks it worked a trest! much appreciated for the help!!

    Gubs
    Gubbins Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139