Lets say i have an index.php file and 2 lists of words for example;
List One:
Red
Blue
Green
Yellow
List Two:
Cats
Dogs
Birds
Fish
How would i go about dynamically changing the content to automagically insert combinations of both lists in specific areas of the index.php page so it changes like below:
This page is about selling Red Fish
This page is about selling Blue Fish
This page is about selling Green Fish
This page is about selling Yellow Fish
Or;
This page is about selling Red Dogs
This page is about selling Blue Dogs
This page is about selling Green Dogs
This page is about selling Yellow Dogs
Using all combinations of words in list 1 as the primary word and list 2 as the secondary word?
Would it be something like this...
Code:
<?php
if ($_GET['list1'])
if ($_GET['list2'])
{echo htmlentities($_GET['list1']);}
{echo htmlentities($_GET['list2']);}
else
{echo ucwords("Colored Animals");}
?>
So i could link:
domain.com/?list1&list2
Does that make sense to any of you who are technically inclined?
Basically, i want to generate a list of URL to throw in a site map and have the page dynamically show whatever 'phrase' based on list1 and list2 the url contains.