這樣的代碼,我收集了最近瀏覽過的網頁是使用會話最近瀏覽過的網頁
<?php
session_start();
$currentpageurl = $_GET['username'];
$_SESSION['pageurl'][] = $_SERVER['REQUEST_URI'];
if(count($_SESSION['pageurl']) > 10){
array_shift($_SESSION['pageurl']);
}
foreach($_SESSION['pageurl'] as $key=>$value) {
echo 'The value of $_SESSION['."'".$key."'".'] is '."'localhost".$value."'".' <br />';
}
?>
,並顯示它的代碼是
<?php
session_start();
foreach($_SESSION['pageurl'] as $key=>$value) {
echo 'The value of $_SESSION['."'".$key."'".'] is '."'localhost".$value."'".' <br />';
}
?>
的問題是,我需要的URL可點擊的它只是顯示網址爲文本: $ _SESSION ['0']的值是'本地主機/ works.php'
我將如何去使其可鏈接
試圖用''html標籤包裝它? – Gntem 2013-03-13 15:15:31