Hi
I am looking to have a page where I can link to certain text files from a click on another page page.
Maybe the code I show would make things a little clearer.
selectedstories.php:
<h3>
<?php echo '<a href="stories.php?$story_glint=true" title="Glint"><img src="glint.png" alt="Glint" /></a>';
?>
</h3>
So when I click on the Glint link it will take me to stories.php with the variable $story_glint set at true.
This is stories.php so far
<h3>
<?php
if($story_glint==true)
{
ini_set ('display_errors' ,1);
error_reporting (E_ALL & ~E_NOICE);
$data = file ('glint.txt');
print '<p>' . trim ($data) . '</p>';
}
?>
</h3>
This would contain other stories so if it is story2 that is clicked then it would display story2.txt in stories.php.
What modifications do I need to do on the code please?