我有一個看起來像這個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顯示空白.它已經讓我瘋了一段時間了..