为什么我要渲染HTML代码?

时间:2016-04-19 18:21:27

标签: php rendering

我目前正在使用Notepad ++在PHP中进行一个小项目,我正在使用Xampp,所有内容都呈现正常,直到我在标记上方添加了php。在像Before Render这样渲染之前,它现在只是完全显示HTML代码After Render

这是我的代码 -

    <?php include 'database.php'; ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>Shout It !</title>
        <link rel="stylesheet" href="CSS/style.css" type="text/css"/>
    </head>
    <body>
        <div id="container">
            <header>
                <h1>SHOUT IT! Shoutbox</h1>
            </header>
            <div id="shouts">
                <ul>
                    <li class="shout"><span>10:15PM - </span>Brad : Hey What Are you guys up to.</li>
                    <li class="shout"><span>10:15PM - </span>Brad : Hey What Are you guys up to.</li>
                    <li class="shout"><span>10:15PM - </span>Brad : Hey What Are you guys up to.</li>
                    <li class="shout"><span>10:15PM - </span>Brad : Hey What Are you guys up to.</li>
                    <li class="shout"><span>10:15PM - </span>Brad : Hey What Are you guys up to.</li>
                </ul>
            </div>
            <div id="input">
                <form method="post" action="process.php">
                    <input type="text" name="user" placeholder="Enter Name" />
                    <input type="text" name="message" placeholder="Message" />
                    <br/>
                    <input class="shout-btn" type="submit" name="submit"value="Shout It Out !" />
                </form>
            </div>
        </div>
    </body>
</html>

关于我如何解决这个问题的任何想法,因为我以前从未遇到过这个问题并且过去几个小时都在尝试解决方案?

0 个答案:

没有答案