Questions about how to dynamically insert values of multiple rows-php Tutorial

Source: Internet
Author: User
The problem of the value of dynamic insertion of plural rows is now a problem. PHP and SQLServer2008 are used as a logon system. After you press the "line" button, two rows are automatically appended, and two rows are in the same group. (1--2 is the first group, and 2--2 is the second group.) press the "login" button to input everything entered by the client to the DB. However, the value of that Table is dynamically inserted and does not take the value. Others say that the value of dynamically creating trtd and inpu in js is a problem of dynamically inserting the plural rows.
Problems that are currently plagued. PHP and SQL Server are used as a logon system.

After you press the "line" button, two rows are automatically appended, and two rows are in the same group. (1--2 is the first group, and 2--2 is the second group)
Press the "login" button to input everything entered by the client to the DB.
However, the value of that Table is dynamically inserted and does not take the value.


Others say that js is used to dynamically create tr td and input, and php can directly Traverse

$ _ GET or $ _ POST, the array can GET all values ..


To sum up, from the perspective of this system, we mainly want to retrieve the input value from every two groups of rows in the dynamic Table and then bring it into the DB.



-------------------------------------------------------

The main code is described below.

Javascript when the row insert button is pressed

/// Code omitted

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.