Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
问题:我需要通过单击位于页面 01.php 上的链接将变量值传递给页面 03.php 上的变量并指向页面 02.php。是否可以?如果是 - 如何?谢谢你。
将此值存储在会话中 - 使用$_SESSION数组:
$_SESSION
在01.php:
01.php
session_start(); $_SESSION['variable'] = $value;
在03.php:
03.php
session_start(); echo $_SESSION['variable'];