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 9121223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:48:43+00:00 2026-06-17T05:48:43+00:00

I have a web form with multiple elements with the same name for example:

  • 0

I have a web form with multiple elements with the same name for example:

<textarea name="instructions"><cfoutput>#struct.instructions# </cfoutput> </textarea>

Form is built in html/coldfusion/js and the database to store the data is MS Access.

In the script that I am using to process form submission I am using ListToArray method to get all fields with a given name.

<cfset arrayInstr = ListToArray(Form.instructions)>

Ok and here is the problem. If the submitted text contains comas ListToArray will interpret it as multiple elements.

For example if I try to submit a string “Bla bla bla bla” everything will be fine, but if string will be “bla, bla, bla” only “bla” will be submitted to database.

Is there other way to process multiple fields with the same name?
I would like to avoid giving unique names.
thank you,
Janusz

  • 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-06-17T05:48:44+00:00Added an answer on June 17, 2026 at 5:48 am

    Q: Is there other way to process multiple fields with the same name?

    A: Not directly

    Javascript sees the items as a array. What you would need to do is have Javascript loop through all the values and create a string with a different delimiter and put that into a hidden field. The distinction between different <textarea>‘s and commas would be maintained.

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

Sidebar

Related Questions

I have an HTML web form where users can upload multiple files. I am
Possible Duplicate: Multiple submit buttons in an HTML form I have web form with
I have web form with a panel which has form elements in side it.
I have to fill in multiple form fields on a web page I got
I have a form JSP web page, this form contains multiple instances of the
I have to use Ajax AutoCompleteExtender multiple times in a web form where i
I have a web application built using maven. It is built in the form
I have a multiple selection listbox on a web form which lists various internal
I have a web form that has multiple ListBoxes, TextBoxes, DropDowns. If I put
I am running a thread in C#. I have web form. I declared public

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.