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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T01:24:17+00:00 2026-05-16T01:24:17+00:00

I design a form that contains dynamic contents. For example, The form has a

  • 0

I design a form that contains dynamic contents.

For example,
The form has a textfield for Paper_Name and a textfield for Paper_Link.
The user can add up to ten paper names and paper links.

The id for each paper name and paper link is as follows:

papername01, paperlink01, …, papername10, paperlink10.

Those ids are dynamically created by JavaScript. In other words, if the user doesn’t click Add Paper button and submit the form, the only field that will be received by the server is paperlink01, and papername01.

Now, the question what is a better practice to design the server PHP script to handle those submitted form content.

  1. Use Ajax form plugin?

  2. Use regular form submission and iterate through all variables and see whether any of them is set?

  3. use JSON data format?

Yes, the question is related to both server and client. I would like to know the best practice and change my client accordingly.
Please help and thank you

The form design looks like the following:

<div id="divDummy001">
 <div id="paperTitle001Fld">
  <label for="papertitle001">Title of Paper 001</label>
  <div>
   <input type="text" size="16" value="" id="papertitle001" name="papertitle001"/>
  </div>
 </div>

 <div id="paperURL001Fld">
  <label for="paperurl001">Paper Link 001</label>
  <div>
   <input type="text" size="96" value="" id="paperurl001" name="paperurl001"/>
   </div>
 </div>
</div>

When the user clicks Add button, a new div will be created with the only difference is that the ID will be increased by 1.

  • 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-16T01:24:18+00:00Added an answer on May 16, 2026 at 1:24 am

    Use arrays. Create textfields with names like papername[1], papername[2] then they’ll appear as arrays in PHP script.

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

Sidebar

Related Questions

I have several label boxes on my design form that all share the naming
Please have a look at this form that I am trying to design with
Trying to add a 'box' to a form at design time, I looked up
Design requirement: Show a list of items the user can pick from After having
I'm using a ToolStripContainer that contains three ToolStrips. At design time I move the
I have a search form tied to a backing bean that contains 4 input
I have a design and run-time component that contains a large number of event
I have a form that a user would fill out while creating a ticket
I have an input form that I want to edit in visual studios design
I've been searching a css form design that looks like below. Could any one

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.