View Single Post
Old 10-16-2012, 09:36 AM  
helterskelter808
So Fucking Banned
 
Industry Role:
Join Date: Sep 2010
Posts: 3,405
Quote:
Originally Posted by Webmaster Advertising View Post
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.
Then you don't need a list. All you need to do is display whatever values are in the request on the page. Something like:

Code:
<?php

$color = $_GET['color'];
$animal = $_GET['animal'];

echo 'This page is about '.$color.' '.$animal;

?>
Would produce:

This page is about Red Dogs

When you visited:

yoursite.com/?color=Red&animal=Dogs

Edit: Obviously you'd need to perform sanitization to protect against malicious requests.

Last edited by helterskelter808; 10-16-2012 at 09:41 AM..
helterskelter808 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote