Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of header Jump and include inclusion

Shulou Source: shulou.com Published: 2022-06-02 05:13:07 10月02日 Update

This article mainly introduces how to solve the problem of header jump and include inclusion, which is very detailed and has a certain reference value. Interested friends must read it!

Registration procedures take a single entrance, the core judgment is checkip, only need to do a game_id judgment in the template program that is not real-name authentication. Because of too sure, eager to get off work, coupled with everyone urged nervous, suddenly fooled, made two mistakes: one is to judge the position of game_id in advance, resulting in many variables behind did not pass to the destination page; second, did not understand the meaning of header jump and include, directly used header to do jump.

The page redirected by header cannot inherit the variables and other elements of the previous page. Give an example:

A.php file

$userEname = "crystal"

$userCname = "Cheng Cheng"

/ / your code

..

Header ("location:b.php")

/ / your code

.

If you reference $userEname in the b.php file, what do you think the result is? All right, don't sell it anymore. At this time, $userEname = null. If you use include to include b.php, you can avoid the problem that $userEname is empty. Peng reminded me of that.

The above is all the content of this article entitled "how to solve the problem of header Jump and include inclusion". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Tags: Questions content variables files programs articles pages sellers two values locations elements entries interests real names guys buddies psychology more core Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL Redmi Linux macOS