quote:
Originally posted by SpunkyLoveMuff
This is one I knocked up myself...
Bug: count($av) will return 18, but $av[18] doesn't exist. 
You could simplify things by eliminating the hard-coded array keys and using the 
array_rand() function...
code:
$path = "http://mywebsite.com/";
$av = array(
    "avatar1.gif",
    "avatar2.jpg",
);
header("Location: " . $path . $av[array_rand($av)]);