Hi,
I'm trying to get my dynamic template to print or echo specific text from a $text variable. So if you go to template.php?text=1.txt, it should display the text that is contained within the 1.txt file, and template.php?text=2.txt will display the text contained within the 2.txt file and so on.
I have managed to do this with images php print, using: img src=<?php echo $pic; ?> and have tried to apply that to the text output I want, using: <?php echo $text; ?> and then calling the text file with template.php?text=1.txt but all I get is the words: 1.txt displayed in the page.
Obviously the echo (and the same with print) functions are displaying literally what I put in the address bar - there must be something missing - any ideas?
TIA
Jonathen