Дело в том, что у меня уже отсылается header в файле header.php
Этот файл рисует меню (он инклюдится в index.php), и в зависимости от получаемого параметра устанавливает определенный стиль на ячейку и ссылку.
Вот его код:
<?php
if (!empty($_GET['a']))
{$a = $_GET['a'];}
else
{$a='';}
?>
<html>
<head>
<title></title>
<link rel=stylesheet type="text/css" href="style.css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
</head>
<body>
<table align="center" cellpadding="0" cellspacing="0" width = "720px">
<tr>
<td>
<table align="center" cellpadding="0" cellspacing="0" id="menu">
<tr>
<td width="80" height="20px" align="center"<? if ($a=='item1') {?> class="tdon"<? } else { ?> class="tdoff" onmouseover="this.style.background='#ffffff'" onmouseout="this.style.background='#99CCFF'" onclick="window.location.href='index.php?a=item1'"<? } ?>>item1</td>
<td width="80" height="20px" align="center"<? if ($a=='item2') {?> class="tdon"<? } else { ?> class="tdoff" onmouseover="this.style.background='#ffffff'" onmouseout="this.style.background='#99CCFF'" onclick="window.location.href='index.php?a=item2'"<? } ?>>item2</td>
<td width="80" height="20px" align="center"<? if ($a=='item3') {?> class="tdon"<? } else { ?> class="tdoff" onmouseover="this.style.background='#ffffff'" onmouseout="this.style.background='#99CCFF'" onclick="window.location.href='index.php?a=item3'"<? } ?>>item3</td>
</tr>
</table>
</td>
</tr>
</table>Работу скрипта можно посмотреть
здесьВот этот скрипт и посылает header.
Дело в том, что мне необходимо чтоб меню работало по такому принципу и устранить повторную отправку данных при рефреше.
Не могли бы вы подсказать как можно реализовать это меню, или придется для каждого модулая писать свой header.html
Буду очень признателен за помощь.
Спасибо!