DiscuzX-UDF meaning

Source: Internet
Author: User
The meaning of the DiscuzX-custom function lies in getgpc () in function_core.php. what is the meaning of this function? Why use this function to obtain form parameters? Thank you ------ solution ------------------ In my opinion, it is mainly convenient to get variables that may be uncertain for get or post! Because $ _ REQUEST is not good ------ solution -------------- DiscuzX-meaning of the UDF
What is the meaning of the getgpc () function in function_core.php? Why use this function to obtain form parameters? Thank you.

------ Solution --------------------
In my opinion, it is mainly convenient to get variables that may be uncertain for get or post!
Because $ _ REQUEST is not very good
------ Solution --------------------
In some modules, parameters submitted do not appear in the $ _ G array. use this function. Of course, you can also use the original $ _ POST or $ _ GET. However, if the parameter submission method changes in the future, you have to change the code.
------ Solution --------------------
Secure, convenient, and easy to modify,

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.