Header jump and include include question details

Source: Internet
Author: User
The registration procedure unifies the single entrance, the core judgment is the Checkip place, only needs to make a game_id judgment in the non-real-name authentication template procedure. Because too sure, anxious to get off the psychology, coupled with the tension of everyone urged, all of a sudden, and made two mistakes: one is the game_id of the judgment position ahead of time, resulting in a lot of variables are not uploaded to the destination page, the second is not understand the header jump and include the meaning Direct use of the header to do the jump.

After the header jumps the page, cannot inherit the previous page the variable and so on the element, illustrates:
a.php file

$userEname = "Crystal";
$userCname = "Regulation regulation";
Your code
................................
Header ("location:b.php");
Your code
..................

If you refer to $userename in the b.php file, what do you think the result is? OK, no suspense, $userename = null at this time. If you include b.php with include, you can avoid the problem of empty $userename. This is still Peng remind me.


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.