I think I have narrowed down where the problem is. It is on the previous page! When I hover over the links, they are incorrect. The following code is at the top of the page. Should it be before the <head> html for it to work?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/main.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<?
if (isset($_GET['myvariable'])) {
$value= $_GET['myvariable'];
} else {
$value= "xxx";
}
?>
<a href="http://www.mysite.com/index.php?var=<? echo $value; ?>