Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6558529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:12:38+00:00 2026-05-25T13:12:38+00:00

In my form I have an element with square bracket: <input name=bodyIDList[] id=bodyIDList value=>

  • 0

In my form I have an element with square bracket:

<input name="bodyIDList[]" id="bodyIDList" value="">

When I pass this page to ColdFusion how is this treated as a form variable? As a list or an array?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:12:39+00:00Added an answer on May 25, 2026 at 1:12 pm

    Not sure why you are asking this question – it takes literally a few seconds to create a test and find out for yourself!

    The code to test it is this simple:

    <cfoutput>
        <form action="#CGI.SCRIPT_NAME#" method="post">
            <input name="bodyIDList[]" id="bodyIDList" value="">
            <button type="submit">go</button>
        </form>
    </cfoutput>
    
    <cfdump var=#Form# />
    

    Run that, press go, look at the dump.

    But, since we’ve now got this question here, I might as well give a full answer, since there is actually an interesting thing to be aware of…

    If you run that code on Adobe ColdFusion 9 (or any other version of CF) you will get a string variable named bodyIDList[] – that is Form['bodyIDList[]'] – with a single value.

    If you had multiple of these fields you will still get a string with a comma-delimited list.

    Since it contains brackets in the variable name, it is not possible to access this field with dot-notation.

    All the above also applies for the latest Open BlueDragon.

    However, if you use Railo, you will get a different behaviour (copied from PHP) which instead will give you a variable called bodyIDList – i.e. Form[‘bodyIDList’] with no brackets – which contains an array

    If you had multiple of these fields you would get a single array with multiple elements.

    There is currently no admin configuration option to make Railo compatible with ACF on this, so:
    If you are writing cross-engine CFML code, do not use form field names with brackets.
    (well, unless you’re aware and willing to deal with the differences).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an form input element and want to change its title attribute. This
Here is a form element I have. <select id=state name=state style=width: 212px;> <option value=nsw>New
I have a Form element: $Form=new Zend_Form; $Form->setAction($this->view->url(array('controller'=>'auth','action'=>'create'),null,true)) ->setMethod('post') ->setAttrib('id','auth-form') ->removeAttrib('enctype'); As can be
I have a form element defined as: <div class=field> <div class=name> <label for=User_LastName> Last
I have a form element that I'm setting as required: $this->addElement('text', 'email', array( 'label'
i have a form with name frmOrderReschedule and an hidden element frmOrderReschedule . i
i have a form element- text input and a submit button- Im trying to
I have a element in my form. <select name=states disabled=disabled size=10 id=select-states><optgroup label=Choose State
I have a form element, called metaDescription : //inside the form $description = $this
Assume you have input element: <input id=aaa type=text value=unchanged /> Then launch js script:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.