wops...
my intention is to use page index.php as the one page people access...
page 1, b, and c contain the content
index has the links with <a href="index.php?$unf=index(abor c).html">link</a>
showing the not calling the function was my mistake...
i didnt get all the code when i copied from my editor...
<div class="wrap">
<div>//all links here</div><br />
<div align="center">
<?php
//sets $unfunf to equal whatever$unf was defined as in the link clicked
$unfunf = $_GET[$unf];
// sets myPage as function with $syk, and $index as its variables
function myPage($syk;,$index;)
{
$syk = $index; //tells php $syk is the same as $index
$index = indexa.html; //is supposed to tell php $index is indexa.html
//says that if $syk equals indexa.html then echo $index include, else echo $unfunf
if ($syk=$index;)
{
echo '<?php include("$index;"); ?>';
}
else
{
echo '<?php include("$unfunf;"); ?>');
}
}
//calls entore function
myPage()
?>
</div></div>
i want the page to load indexa.html into index.php when the user firsts visits the page, but when they click the link to open page 2, i want it to basicaly refresh index.php with indexb.html content
when i click my link to pass $unf=indexb.html back to index.php it should reload index.php with indexb.phps info...
from what i can see, it should work... i get no errors on page. all i get is a blank page when i load the index.php page, even when i put index.php?$unf=indexb.html in my address bar....
sry if its an agrivating question, but the one thing i havent done is worked with $get &post
and i'm probably doing this the hard way
any help would be appreciated