在HTML页脚中组合PHP会话变量


combinging php session variable within html footer

我有以下代码:

<!DOCTYPE html>
<html>
    <body>
        <footer>
            <p>
                <font size="2px">The shared documents above are 
                the property of <b><a href="<?php $_SESSION["Website"] ?>"><?php echo $_SESSION["companyname"] ?></a></b>
                and any files are confidential and intended solely for the use of the individual or entity to whom they are addressed.
                If you have received this link in error please notify our <a href="mailto:someone@example.com">admin team</a>.
            </p>
            <p>
               <font size="2px">If you are not the named addressee you should not disseminate, download, distribute or copy any documentation and should delete the email immediately.
               <font size="2.5px" color="PaleGoldenRod" ><b>  IMSdrive is owned by <a href="http://www.jkgsoft.com">JKGsoft</a> All rights reserved 2015.</b>
            </p>
        </footer>
    </body>
</html>

在大多数情况下,它应该以应有的方式工作,但是在第一个会话值上,将公司网站放在htref元素中,尽管它在屏幕上显示,但它没有指向正确的网站,屏幕截图在这里。

我知道$_SESSION["Website"]正在工作,因为我已经尝试在标题中呼应它,只是想知道是否有人可以告诉我为什么它不逃避这个网站,当你悬停或点击链接时,它基本上带你到你已经在的页面。

使用<?php session_start(); ?>