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

  • Home
  • SEARCH
  • 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 9064435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:15:04+00:00 2026-06-16T16:15:04+00:00

I am attempting to get information from an HTML form to a PHP script.

  • 0

I am attempting to get information from an HTML form to a PHP script. The catch is that I need to be able to add/subtract rows from the form, and dynamically adjust the data received by the PHP form. Each row of the form has only one text box for data.

For example, I need to enter three users in the form. One row is displayed by default. I’ll hit the “add row” button twice, so three boxes are there, then I’ll enter User 1, User 2, and User 3. All three names need to be passed to the PHP form, which parses all 3 names and does its thing.

I can probably come up with the PHP logic (although any help would be appreciated), but I don’t know how to dynamically post the HTML form to the PHP script or how to add/subtract rows from the form itself.

  • 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-16T16:15:05+00:00Added an answer on June 16, 2026 at 4:15 pm

    If you have each row of users use an array for the name rather than a specific name you could go through the array in the PHP page using a foreach.

    <div>
        <input type="text" name="users[*row number*][name]" value="" />
    </div>
    

    In the PHP file the users would be accessible using

    foreach ($_POST['users'] as $row => $value) {
        // name would be $value['name']
    }
    

    Edit:

    The form can be created using the same sort of format as http://jsfiddle.net/gM8MM/

    Then you can access that data using somthing like http://pastebin.com/n6sa6kpJ

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

Sidebar

Related Questions

I am attempting to get some information from a website, the info that I
I am attempting to get some information from a russian shipping website. Being a
I am attempting to use ASIHttpRequest with the iPhone to get some information from
I am attempting to get specific information from the user's profile via the LinkedIn
I'm attempting to get the information from the brews and recipes tables based off
I am attempting to get the information from one table (games) and count the
Im attempting to get a block of text from a file I have already
I'm attempting to get rid of an app's HTML files and store their contents
I'm attempting to get order data from a Yahoo store. I'm using the docs
I am attempting to get a distinct list of id's back that would be

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.