Parse error for SSI navigation menu images
Posted: Sat Dec 13, 2003 7:39 am
I'm trying to create a navigation menu with 'on' and 'off' versions of buttons.
I've created a series of if/else/endif statements - example below
and put the following line of code on the churches.php page:
When I access that page, I get this error:
Parse error: parse error, unexpected T_VAR in /home/content/c/m/s/cmsds/html/kouts/churches.php on line 1
This is my first attempt to do this and I haven't been able to find any tutorials about it as related to .php instead of .shtml files. Any help would be greatly appreciated!
Thanks.
I've created a series of if/else/endif statements - example below
Code: Select all
<?php if (var="churches") then %><a href="churches.php"><img src="images/churches_on.gif" width="154" height="28" hspace="0" vspace="0" border="0" alt="Churches"></a><% else %><a href="churches.php"><img src="images/churches_off.gif" width="154" height="28" hspace="0" vspace="0" border="0" alt="Churches"></a><% end if
?>Code: Select all
<?php
<? set var="page" value="churches" ?>
?>Parse error: parse error, unexpected T_VAR in /home/content/c/m/s/cmsds/html/kouts/churches.php on line 1
This is my first attempt to do this and I haven't been able to find any tutorials about it as related to .php instead of .shtml files. Any help would be greatly appreciated!
Thanks.