我有一个看起来像这个reglph的文件?lang = no_NO& passkey = test并试图获取密码变量,但它一直显示为空白.
当我尝试print_r($_ GET);它打印Array()?!怎么会发生这种情况?
该网站看起来像这样
print_r($_GET);
include('..\libs\Smarty.class.php');
?>
Activate account(...html code.. )
$smarty = new Smarty;
//$smarty->force_compile = true;
$smarty->debugging = false;
$smarty->caching = false;
$smarty->cache_lifetime = 120;
// PHP gettext api
define('PROJECT_DIR', realpath('./'));
(... define gettext ... )
$passkey=$_GET['passkey'];
(...work with passkey ...)
$smarty->display('templates\site.tpl');
?>
而已.我无法理解为什么$_GET显示空白.它已经让我疯了一段时间了..