The following is a simple problem about table data transmission. there is a table on the foreground that can dynamically add rows. for example, there are four td files, 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.
Reply to discussion (solution)
Name
Name = "PlugName []"
Read
Echo $ _ POST ['name name'] [$ I];
There should be no difference between a normal submission, right? forms and ajax can all be used.
Name
Name = "PlugName []"
Read
Echo $ _ POST ['name name'] [$ I];
Thank you! what does this mean,
$ Name = "PlugName []";
Where can I call this name?
Name
Name = "PlugName []"
Read
Echo $ _ POST ['name name'] [$ I];
Thank you! what does this mean,
$ Name = "PlugName []";
Where can I call this name?
The server processes the received data.
Name
Name = "PlugName []"
Read
Echo $ _ POST ['name name'] [$ I];
Thank you! what does this mean,
$ Name = "PlugName []";
Where can I call this name?
The server processes the received data.
Thank you. I know, but how should I initialize this $ I?
For ($ I = 0; $ I <count ($ _ POST ['name name']); $ I ++ ){
Echo $ _ POST ['name name'] [$ I];
}
For ($ I = 0; $ I <count ($ _ POST ['name name']); $ I ++ ){
Echo $ _ POST ['name name'] [$ I];
}
Yes. thank you very much.