View Single Post
Old 10-16-2012, 10:24 AM  
Webmaster Advertising
So Fucking Banned
 
Join Date: Sep 2003
Posts: 1,360
Quote:
Originally Posted by helterskelter808 View Post
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.
Ah okay (on not needing a list for the actual colors and animals).

Id still need a list of combinations ?color=Red&Animal=Dogs though to include in the sitemap.xml file though.

As far as the sanitization goes, do you know if its possible to have 'exclusion words' in the code you posted above or would that be something different?

Thanks everyone for their assistance (and the funny pics )
Webmaster Advertising is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote