Hi everyone,
I am trying to develop a .html page with PHP in it but when I view the source code it does not show anything below the first function call. Below is an example of the html source when it is viewed from a browser (FF4):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <!-- favicon -->
<link rel="stylesheet" type="text/css" href="/css/style.css" /> <!-- css -->
<script type="text/javascript" src="/php/functions.php"></script> <!-- php -->
<script type="text/javascript" src="/js/functions.js"></script> <!-- javascript -->
</head>
<body>
<header></header>
<nav>
The function call is just below the <nav> as it is to call a function called getNav(); but it is not showing.
The actual code for the page is below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> <!-- favicon -->
<link rel="stylesheet" type="text/css" href="/css/style.css" /> <!-- css -->
<script type="text/javascript" src="/php/functions.php"></script> <!-- php -->
<script type="text/javascript" src="/js/functions.js"></script> <!-- javascript -->
</head>
<body>
<?php include("/php/functions.php"); ?>
<header></header>
<nav>
<?php getNav(); ?>
</nav>
<article>
<section>
</section>
</article>
<aside>
<address>
<?php getAddress(); ?>
</address>
</aside>
<footer></footer>
</body>
</html>
Does anyone have any idea on what is going on here and how to fix it? Many thanks.