php - Why am I rendering HTML code? -
i doing small project in php using notepad++, using xampp , rendering fine until did php include above tag. before rendering before render , showing entirely html code after render.
here code -
<?php include 'database.php'; ?> <!doctype html> <html> <head> <meta charset="utf-8"> <title>shout !</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 guys to.</li> <li class="shout"><span>10:15pm - </span>brad : hey guys to.</li> <li class="shout"><span>10:15pm - </span>brad : hey guys to.</li> <li class="shout"><span>10:15pm - </span>brad : hey guys to.</li> <li class="shout"><span>10:15pm - </span>brad : hey guys 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 out !" /> </form> </div> </div> </body> </html>
any ideas on how can resolve have never come across before , have been sat trying solutions last few hours ?
Comments
Post a Comment