I currently have a template for a page which includes .shtml pages and Javascript code, when I add php code to this page and change the extension to .php from shtml, the page formatting changes, I know that I have to change the syntaxt in my include statements, but dont think I am doing it properly, This is the shtml code I am attempting to change to the php equivalent:
<code>
<!--#include virtual="/includes/topnav.shtml" -->
<table border="0" cellspacing=0 cellpadding=0 width="100%" onMouseOver="allOff()">
<tr>
<td onMouseOver="allOff()"height="53"><img src="/images/header.jpg" width="228"height="52"></td>
</code>
I have tried to repeat this using:
<code>
<?php include('/includes/topnav.shtml'); ?>
<table border="0" cellspacing=0 cellpadding=0 width="100%" onMouseOver="allOff()">
<tr>
<td onMouseOver="allOff()" height="53"><img src="/images/header.jpg" width="228" height="52"></td>
</code>
I recieve two type of errors from this code,
1. The file is not included
2. I get run time errors on the JavaScript code eg. onMouseOver="allOff()"
Does anyone know what I am doing wrong?
<code>
<!--#include virtual="/includes/topnav.shtml" -->
<table border="0" cellspacing=0 cellpadding=0 width="100%" onMouseOver="allOff()">
<tr>
<td onMouseOver="allOff()"height="53"><img src="/images/header.jpg" width="228"height="52"></td>
</code>
I have tried to repeat this using:
<code>
<?php include('/includes/topnav.shtml'); ?>
<table border="0" cellspacing=0 cellpadding=0 width="100%" onMouseOver="allOff()">
<tr>
<td onMouseOver="allOff()" height="53"><img src="/images/header.jpg" width="228" height="52"></td>
</code>
I recieve two type of errors from this code,
1. The file is not included
2. I get run time errors on the JavaScript code eg. onMouseOver="allOff()"
Does anyone know what I am doing wrong?