Why do I have to write this to receive form values?

Source: Internet
Author: User
How can I write this to receive the form value?
This post was last edited by phpcms2021 on 2015-03-24 10:56:05

There are such arrays in the Post mode form:

Use it when you see someone else writing and receiving values.
post[' Test ']
So here's the problem, I understand that only variables can be placed in post,
Like what
Written post[' test ']
And the first kind of writing let a person touch the mind, how can the array put in it, even if the post can be connected to an array, should not be bare to write a test ha, but also should add a [] that is written post[' test[] ', he wrote Test, is a what thing, referring to unknown ha! and written test[] Can be expressed as an array, and the form of test[] cannot be written as test instead of the HA
I mean, what's going on here?
------to solve the idea----------------------

Corresponds to $_post[' test ']


Corresponds to $_post[' test ' [' ABC ']

So there's no problem, right?

A form element with the same name is interpreted as an array, which is what all web languages do
Only PHP adds a little restraint.
------to solve the idea----------------------
Because the representation is a number.

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