Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem of header Jump and include inclusion

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report