2011-03-23 87 views

回答

0

您可以將其存儲在$ _SESSION變量

$_SESSION['js'] = "<script>alert('you are logged in.');</script>"; 

,並打印出來只有當用戶登錄。

if([check if user is logged in]){ 
    echo $_SESSION['js'];}