PHP Table Submit get post problem finding Group

Source: Internet
Author: User
For example, this table dropdowns is like this.





Add button, click to load





After submission, the post is sent as: Title form URL Form1 url1 Form2 url2
in PHP
num = value obtained by increasing the button
I=1
When I <= num i++
How do I get
The value of form URL Form1 url1 Form2 url2? Achieve the following effect
for (i=1;i <= num i++) {
......
S. = Form URL
}

The output is:
S. = $_get[form1] Url1 ... The value
S. = $_get[form2] Url2 ... The value
.......


Reply to discussion (solution)

In your application, the form control should be named as an array


Advantages have two:
1. JS does not need to calculate the name when adding space
2. After submission, PHP will parse them into an array. There will be no variable assembly of variables

  • 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.