The values in the PHP array cannot be obtained. What should I do?

Source: Internet
Author: User
The values in the PHP array cannot be obtained .. After the form is submitted using POST: var_dump ($ _ POST); the output value of the POST array shows that the values in the values & quot; [1] PHP array cannot be obtained ..
After submitting a form using POST:
Var_dump ($ _ POST );
The output value of the POST array is as follows:
Array (10) {["picName"] => array (2) {[0] => string (33) "p_large_18SQ_6bcc000198902d14.jpg" [1] => string (33) "Records"} ["p_large_18SQ_6bcc000198902d14_jpgtop"] => string (5) "290px" ["p_large_18SQ_6bcc000198902d14_jpgleft"] => string (5) "454px" ["p_large_18SQ_6bcc000198902d14_jpgheight"] => string (3) "236" ["p_large_18SQ_6bcc000198902d14_jpgwidth"] => string (3) "150" ["bytes"] => string (5) "100px" ["p_large_4u3y_64f80006f1_5c40_jpgleft"] => string (5) "500px" ["p_large_4u3y_64f80006f00005c40_jpgheight"] => string (3) "150" ["limit"] => string (3) & quot; 150 & quot; [& quot; num & quot;] = & quot; string (1) & quot; 2 & quot "}

However, when the value in the POST is retrieved, for example, _ POST ["p_large_18SQ_6bcc000198902d14.jpgtop"]
The following error occurs: Notice: Undefined index: p_large_18SQ_6bcc000198902d14.jpgtop.
But Yima is clearly in _ POST. this is a magic horse. ==|||||

------ Solution --------------------
Yes, "." in the submitted variable name will change to "_"

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.