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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:42:28+00:00 2026-05-16T18:42:28+00:00

I have a table of rows and columns on an HTML-based entry form that

  • 0

I have a table of rows and columns on an HTML-based entry form that allows the user to edit multiple records. Each row corresponds to a database record and each column to a database field.

When the user submits the form, the server needs to figure out which request parameter belongs to which row. The method I’ve been using for years is to prefix or suffix each HTML input element’s name to indicate the row it belongs to. For example, all input elements would have the suffix “row1” so that the server would know that request parameters whose names end with “row1” are field values for the first row.

While this works, one caveat of the suffix/prefix approach is that you’re adding a constraint that you can’t name any other elements with a particular suffix/prefix. So I wonder if there’s a better, more elegant approach. I’m using JSP for the presentation layer, by the way.

Thanks.

  • 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-16T18:42:29+00:00Added an answer on May 16, 2026 at 6:42 pm

    Current user agents send back the values in the order of the fields as presented to the user.

    This means that you could (theoretically) drop the prefix/suffix altogether and sort it out based on the ordering of the values. You’d get something like

    /?name=Tom&gender=M&name=Jane&gender=F&name=Roger&gender=M
    

    I don’t know how your framework returns that, but many return it as lists of each value

    name = [Tom, Jane, Roger]
    gender = [M, F, M]
    

    If you pop an element off of each list, you should get a related set that you can work with.

    The downside to this is that it relies on a standard behavior which is not actually required by the specification. Still… it’s a convenient solution with a behavior that won’t be problematic in practice.

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

Sidebar

Related Questions

I have a table with multiple rows and columns and each cell contains a
In my HTML document, I have a table with two columns and multiple rows.
I am having a HTML table with many rows. I have seven columns in
I have a simple HTML Table (10 columns x 500 rows). When the page
I have an HTML table which has equally divided rows and columns. I would
I have an HTML table which may contain thousands of rows (number of columns
Like the title says, I want to have a HTML table that allows its
I have table of 5000+ rows and 8+ columns like, Station Lat Long Date
We have a large table (450 million rows containing 34 columns of numeric or
I have a table with ~200 million rows and ~15 columns in it. I

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.