• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Accessing data in unknown form structure

New Here ,
Oct 09, 2007 Oct 09, 2007

Copy link to clipboard

Copied

I have a form that submits form variables based off a database. On the action page I am unsure on how to get the data from these variables.

For example, I have a form that creates a series of check boxes pulled form a database. The form variables will be random and named something like "Group23, Group4, Croup989...etc".

I can get the form variable names on the action page by viewing the form structure but I can't figure out how to get the data for that variables. I need to insert this data into a database.

I want to do something like:

<CFSET CurrentGroupValue = "#FORM.#i##"> where "i" is me looping through the form structure. This obviously won't work but I am not sure of another way.

Any help would be appreciated.
TOPICS
Advanced techniques

Views

174

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 09, 2007 Oct 09, 2007

Copy link to clipboard

Copied

LATEST
<cfset currentGroupValue = form[idx] />

(where idx is your loop index)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation