Posted last night and didn't get much of an answer, mostly because I didn't know how to express what I was saying. Anyway, I've got an example now.
Structurally, I'm trying to say, "If a link is clicked, and the link is equal to X, echo $X." Of course, this isn't being easy for me.
Here's a short version of what I have. I had it working for about two secons, and then of course I mucked it up... ah well. Please take a look:
//stain.php - Header and site HTML is here
<?php
$click = "b";
$timeline = "Timeline.<br>";
$notes = "Notes.<br>";
$blank = "<br>";
echo "<a href=\"stain.php?click=t\">timeline</a><br>";
echo "<a href=\"stain.php?click=n\">notes</a><br>";
if(isset($_GET['click'])) {
$click = $_GET['click'];
} else {
echo "Nothing has been clicked yet";
}
if($click="t") {
echo $timeline;
} elseif($click="n") {
echo $notes;
} elseif($click="b") {
echo $blank;
}
?>
Does this make any sense, or am I going crazy?
I don't want to use layer visibility for this, because I want to actually insert the text into the site, not have a pre-made "box".