将变量从一个php文件传递到另一个php文件

时间:2015-04-30 22:32:49

标签: php html get

所以在我的PHP脚本完成后,我有这一行:

$success = TRUE;
header('Location: ../admin.php'); //the main file

在admin.php文件中,我有这一行:

<?php

    if ($_GET["success"] == TRUE) {
        echo "<b>Your file has been imported.</b><br><br>";
    }

知道为什么这个布尔值没有被传递以及为什么回声不起作用?

0 个答案:

没有答案
相关问题