Simple table data transmission problems

Source: Internet
Author: User
A simple table data transmission problem is that there is a table on the foreground that can dynamically add rows. for example, there are four td, as shown below: & lt; td & gt; & lt; input & nbsp; typetext & nbsp; placeholderPlugName & nbsp; namePlugN solve a simple table data transfer problem
In this case, there is a table at the front end, and rows can be dynamically added. for example, there are four td, as shown below:





Click the Add record button to add a line below, as shown below:





Then click "add" to learn how to obtain the value in the background? PlugName1, testName1, and so on. Thank you.
------ Solution --------------------
Name
Name = "PlugName []"

Read
Echo $ _ POST ['name name'] [$ I];
------ Solution --------------------

For ($ I = 0; $ I <count ($ _ POST ['name name']); $ I ++ ){
Echo $ _ POST ['name name'] [$ I];
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.