How to do calculation with the values in 2 form lists?

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

  1. #1

    Default How to do calculation with the values in 2 form lists?

    Hello,

    I have 2 form list menus on a page, say list_1 and list_2. Each of the llist
    meuns has items associted with values. When a item in list_1 or list_2 is
    selected, I want to multiply the values of the selected items in list_1 and
    list_2. I'm using DW MX 2004 on Mac OS 10.2.8 with Apache, Mysql and PHP. How
    can I do it? Does DW has any built-in function to this? Or Javascript?

    Thanks in advance.

    Pw

    hypamw Guest

  2. Similar Questions and Discussions

    1. lists and sum of values
      noob here. I have a table in a database populated with lists. I need to query the entire database and find the instance count of each value in...
    2. #Error in form calculation
      I get #Error in a simple =sum() calcualtion in a form's footer. Same formula works just fine in another form. What could be a reason for the...
    3. inserting option values into drop down lists with getstring when using distinct in the SQL
      I don't know what your problem is. It works fine for me. Here is my code: <% dim cn,rs set cn=server.CreateObject("adodb.connection") ...
    4. Form Calculation
      Hi Everyone, I have the following controls in an Access 97 form with a table as the source and the default view as "Continuos Form": ...
    5. How to question: Added new values to dropdown lists & database
      This is my attempt to rephrase a question I asked earlier that got no response. I suspect it was my poor/unplanned wording. Here is another...
  3. #2

    Default Re: How to do calculation with the values in 2 formlists?

    Hello,

    I figured out how to get the index and value of the selected item on a list
    menu and do the multiplication on the values. Now I want to update a textfield
    with the calculation result. I think I don't need a recordset for the dynamic
    update. Should I use textfield for this purpose? Or there is something else?

    Thanks in advance.

    Pw

    hypamw 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