2 Replies Latest reply on Dec 10, 2006 6:25 PM by BKBK

    CFFILE Loop

    mikeap Level 1
      Attached is my form and action page code. How can I insert the value of "form.title" into my db? When I run the attached code, it adds "FORM.title1" as my value to the db. What do I need to change in my variable.title to make this happen?
        • 1. Re: CFFILE Loop
          CutterBl Level 1
          I think that would be something more like <cfset variables.title = evaluate(form.title & i)> (always scope your vars everywhere)
          • 2. Re: CFFILE Loop
            BKBK Adobe Community Professional & MVP
            > How can I insert the value of "form.title" into my db?

            As CutterBI says, use scope, that is

            <cfset variables.title = "FORM.title" & i>
            <cfset variables.filename = "FORM.file" & i>

            Store in your db Evaluate(variables.title) in place of variables.title