The header jump in PHP uses include to resolve parameter loss issues, headerinclude_php tutorial

Source: Internet
Author: User

The header jump in PHP uses include to solve the parameter loss problem, Headerinclude


Some colleagues reflect that recently launched several games overseas registration can not be loaded in style files, need urgent repair.

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? The $userename = null at this time. If you include b.php with include, you can avoid the problem of empty $userename.

The above mentioned is the whole content of this article, I hope you can like.

http://www.bkjia.com/PHPjc/996221.html www.bkjia.com true http://www.bkjia.com/PHPjc/996221.html techarticle PHP header jump use include to solve the problem of parameter loss, Headerinclude colleagues reflect, recently launched several games overseas registration loading not style files, need urgent repair. ...

  • 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.