Hi,
I have written two pages, but rather than keep having news.php, news2.php, new3.php for each page i've decided to use the switch statement.
My code looks similar to:
<html>
<head></head>
<title>News</title>
<body>
<?
switch($page)
{
case 1:
echo "ignore case one for now";
break;
case 2:
?>
<table>
<tr>
<td>News page 2</td>
</tr>
</table>
<?
;
break;
default:
?>
<table>
<tr>
<td>News page 1</td>
</tr>
</table>
<?
]
?>
</body>
</html>
It works fine, only IE comes up witha syntax error in the status bar (similar to what you get with javascript errors, i.e. error on page) when clicking between page 1 and 2. Only if the page is refreshed no syntax error is displayed. So i'm confused?
How can i get rid of the syntax error in IE?
Thanks
Ant