I am a newbie at php, but I need help in doing this, I am trying to create a website to where the only thing my links do is change the value of a variable (so I can just really haveonly one index page), but I have not quite figure out how to do it. Any help would be greatly appreciated.
BTW here is my source code:
/*<?php session_start(); ?>
<?php session_register("changeinclude"); ?>
<?php $changeinclude = "greeting_page.htm"; ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CHS CSS</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="teststyle.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body onLoad="MM_preloadImages('images/library.gif','images/power_rollover.gif','images/freshman_rollover.gif','images/tour_rollover.gif','images/downloads_rollover.gif','images/events_rollover.gif','images/driving.gif','images/contacts_rollover.gif')">
<div class="header"> </div>
<div class="navigation"><a href="http://chslibrary.vail.k12.az.us/simple/?sessionid=1NYR545AQ3616410" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('chs library','','images/library.gif',1)"><img src="images/library_solid.gif" alt="CHS Library" name="chs library" width="156" height="25" border="0"><br />
</a><a href="http://ps.vail.k12.az.us/public/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('powerschool','','images/power_rollover.gif',1)"><img src="images/power_solid.gif" alt="Power School" name="powerschool" width="156" height="25" border="0"></a><br />
<a href="templatecss.php?<?PHP $changeinclude="testincludedpage2.html";
?>" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('freshman','','images/freshman_rollover.gif',1)"><img src="images/freshman_solid.gif" alt="Freshmen Academy" name="freshman" width="156" height="25" border="0"></a><br />
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('tour','','images/tour_rollover.gif',1)"><img src="images/tour.gif" alt="Virtual Tour" name="tour" width="156" height="25" border="0"></a><br />
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('downloads','','images/downloads_rollover.gif',1)"><img src="images/downloads_solid.gif" alt="Downloads" name="downloads" width="156" height="25" border="0"></a><br />
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('events','','images/events_rollover.gif',1)"><img src="images/events_solid.gif" alt="Events" name="events" width="156" height="25" border="0"></a><br />
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('driving','','images/driving.gif',1)"><img src="images/directions_solid.gif" alt="Driving Directions" name="driving" width="156" height="25" border="0"></a><br />
<a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('contacts','','images/contacts_rollover.gif',1)"><img src="images/contacts_solid.gif" alt="Contacts" name="contacts" width="156" height="25" border="0"></a></div>
<div class="content"> <?php include("$changeinclude"); ?> </div>
<div align="center"> <a href="http://validator.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-html401"
alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!">
</a>
</div>
</body>
</html>*/