Returns the id of the previous page.

Source: Internet
Author: User
Returns the id of the previous page, but returns FALSE,
Please consult


Reply to discussion (solution)

Is there a post value passed on your previous page, and the url is directed to the current php file?

Var_dump ($ _ POST );
Hope the answer is helpful to you.

I think it's strange that the page actually has an ID ??

Output false
It's your var_dump ($ result); is there no data to query?


This is the value of the previous page

There should be no other errors

Whether the $ resurt ['id'] output from the previous page has a value or whether the URL is correctly transmitted

Are you sure you want to $ _ POST [file_id]; instead of $ _ POST ['File _ id'];

#5. the file_id is the url variable.
You cannot use $ _ POST ['File _ id'] to obtain the value.
Use $ _ GET ['File _ id ']

$ Field = $ _ GET ['field'];

The hyper-connection is transmitted in GET mode and obtained using $ _ GET.

Thank you. I have fixed it.

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.