Hi,
I am a total beginner with php but am trying to get a couple of things working - I managed so far to dynamically insert keywords into the title and body text.
What I want to do next is to have that keyword also insert a relevant text file with much more content, and an image file as well. I think I can sort the image part out but I have no idea where to start with grabbing a large text file.
I presume I would set the text files - there will be over 30 of them, each 200 words long - on a separate file and then get the keyword to grab them.
Here's the code I'm using to insert the keywords:
<?php
if ($GET['kw'])
{echo ucwords($GET['kw']);}
else
{echo ucwords("alternative text");}
?>
I'll try and deal with the images with this:
<img src="images/<?php echo $_GET["keyword"]; ?>.jpg">
I've had a good luck around for tutorials but part of the problem is I'm not actually sure what I should be looking for - I think I've explained the problem Ok above. If anyone can just give me a pointer in the riht direction I'd really appreciate it.
Thanks