Hi,
Were to start!!!!
Reference: ----link removed-----
I have an index.php that uses the PHP switch code to switch between different contents in two areas.
The site uses three different menus that you can switch by clicking on the flags (UK, US, Other) and an area to load content.
When you switch menu then click a link within that menu the contents load but the menu reverts back to ‘UK’ menu all the time.
Also when you switch between menus the content area keeps disappearing, I would like it to remain what was there as you switch between menus.
As I’m not to hot with PHP. I can’t seem figure what’s wrong.
Any help would be very much appreciated.
The’ index.php’ coding as follows:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<link rel="stylesheet" type="text/css" href="Tabs.css" />
<script type="text/javascript" src="Menu.js"></script>
</head>
<body link="#000000" vlink="#000000" alink="#808080" style="margin:0; font-family: Arial; font-size: 8pt; word-spacing:0">
<div align="center">
<table border="1" width="980" cellspacing="0" cellpadding="4" style="border-collapse: collapse; border-width: 0px" bordercolor="#000000" id="table2">
<tr>
<td style="border-style: none; border-width: medium">
<p style="margin-top: 0; margin-bottom: 0">
<b>Logo</b>
</td></tr></table></div>
<p style="margin-top: 10px; margin-bottom: 10px"></p>
<p style="margin-top: 30px; margin-bottom: 30px"></p>
<p style="margin-top: 10px; margin-bottom: 10px"></p>
<font face="Arial" style="font-size: 8pt">
<div align="center">
<table border="0" width="980" cellpadding="0" style="border-collapse: collapse" id="table3">
<tr><td width="135">
<p align="right" style="margin-top: 0; margin-bottom: 0"><b>
<a href="?p=Menu - UK.htm">
<img height="18" src="Images/UK.gif" width="22" align="middle" border="0"></a>
<a href="?p=Menu - US.htm">
<img height="18" src="Images/US.gif" width="22" align="middle" border="0"></a>
<a href="?p=Menu - World.htm">
<img height="18" src="Images/World.gif" width="22" align="middle" border="0">
</td><td>
<p style="margin-top: 0; margin-bottom: 0">
<span style="font-size: 8pt; font-weight: 700"><font color="#003366"> - Area</font>
</span>
</td></tr></table></div>
</font><p style="margin-top: 10px; margin-bottom: 10px"></p>
<div align="center">
<table border="0" width="980" cellpadding="4" style="border-collapse: collapse" id="table1">
<tr><td width="170" valign="top">
<?php
switch($_GET['p'])
{
case 'Menu - US.htm':
include('Main Menu - US.htm');
break;
case 'Menu - UK.htm':
include('Main Menu - UK.htm');
break;
case 'Menu - World.htm':
include('Main Menu - World.htm');
break;
default:
include('Main Menu - UK.htm');
break;
}
?>
</td><td valign="top">
<?php
switch($_GET['p'])
{
case 'Test 1 - UK.htm':
include('Content - Main2.php');
break;
case 'Test 1 - US.htm':
include('Content - Main2.php');
break;
case 'Test 1 - World.htm':
include('Content - Main2.php');
break;
default:
include('Content - Main.php');
break;
}
?>
</td></tr></table></div>
</body>
</html>