$ _GET fica vazio quando o URL tem variáveis
Eu tenho um URL que se parece com issoreg.php?lang=no_NO&passkey=test
e estou tentando obter a variável de senha, mas continua aparecendo em branco.
Quando eu tentoprint_r($_GET);
imprimeArray ( )
?! Como isso pode acontecer?
O site tem algo parecido com isto
<?php
print_r($_GET);
include('..\libs\Smarty.class.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Activate account</title>
(...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');
?>
</body>
</html>
é isso aí. Não consigo entender por que $ _GET aparece em branco. Está me deixando louco por um tempo agora ..