Header jump and include include questions _php tutorial

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.
After the language: close to 9 points when the good, Peng also has been waiting for me to go home, dedicated people ah, praise one. The most pitiful number small white, originally promised to accompany her to go shopping after work, the results in the company after 2 hours, still I successfully put pigeons. It seems that this situation is still a lot, I guess she will not find me shopping ... Ah ~ programmer, really hurt!

http://www.bkjia.com/PHPjc/326030.html www.bkjia.com true http://www.bkjia.com/PHPjc/326030.html techarticle 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 mind ...

  • Related Article

    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.