Multiple Form Database Inputs

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Multiple Form Database Inputs

    I have a paragraph with multiple html drop down boxes scattered throughout and
    a hidden field assigned to it for ID puposes. Problem is when I have more than
    1 paragraph in a page and try to do a database insert looping through the ID's
    is easy, the problem is the mulitple dropdowns don't insert correctly....end up
    all together instead of seperated. Any ideas???

    mostlySimple Guest

  2. Similar Questions and Discussions

    1. user inputs form color change
      I have a form that has a row of fields. I need the user to be able to choose different colors in those fields and then submit the form. The reciever...
    2. Building Query criteria dynamically based on Form inputs
      I need to dynamically build a db query based on form inputs; this such a typical thing I am hoping someone can shortcut me to a more elegant...
    3. update multiple records in multiple tables from one form
      hello I have been trying to run multiple update queries based on the data entered by user. Brief background: I am fetching data from various...
    4. Variable inputs on a form
      Is it possible to change the option value according to the date? <cfselect name='reg_fee'> <option value='pre_01_05'>?190.00 <option...
    5. User inputs token from web form
      I have the need to have the web user input a variable from a form field and capture that field information into a token on the web page to be...
  3. #2

    Default Re: Multiple Form Database Inputs

    Forget it.....I usedt he #evaluate()# functiont to complete task.....
    Originally posted by: mostlySimple I have a paragraph with multiple html drop
    down boxes scattered throughout and a hidden field assigned to it for ID
    puposes. Problem is when I have more than 1 paragraph in a page and try to do a
    database insert looping through the ID's is easy, the problem is the mulitple
    dropdowns don't insert correctly....end up all together instead of seperated.
    Any ideas???

    mostlySimple Guest

  4. #3

    Default Re: Multiple Form Database Inputs

    can you post some code?

    ---nimer

    "mostlySimple" <webforumsuser@macromedia.com> wrote in message
    news:cv4u0s$47k$1@forums.macromedia.com...
    > Forget it.....I usedt he #evaluate()# functiont to complete task.....
    > Originally posted by: mostlySimple I have a paragraph with multiple html
    > drop
    > down boxes scattered throughout and a hidden field assigned to it for ID
    > puposes. Problem is when I have more than 1 paragraph in a page and try to
    > do a
    > database insert looping through the ID's is easy, the problem is the
    > mulitple
    > dropdowns don't insert correctly....end up all together instead of
    > seperated.
    > Any ideas???
    >

    Mike Nimer Guest

  5. #4

    Default Re: Multiple Form Database Inputs

    <cfset counter = 0> <cfloop index='I' list='#form.stateID#'> <cfset counter =
    counter+1> <cfquery datasource='#ds#' username='#username#'
    password='#password#'> INSERT INTO hpReports
    (jobid,clientid,catid,stateid,canid) VALUES
    (#form.jobid#,#form.clientid#,#form.catID#,'#listg etat(stateid,counter)#','#eval
    uate('form.dropID#I#')#') </cfquery> </cfloop>

    mostlySimple 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