right, you'll only have to change the data where I put "//and so on". There you can add more or leave less items. The HTML is for the GUI thing.
Without GUI it would be:
code:
<?PHP
$pics["pic"] = array (
'avatar1.jpg',
'avatar2.jpg' ,
'avatar3.jpg' //and so on
);
if(empty($i)) $i = time()%sizeof($pics["pic"]);
else $i--;
$filename = $pics["pic"][$i];
header ('Content-type: image/jpeg');
header( 'Content-Disposition: attachment; filename=avatar');
$f = fopen ($filename, 'rb');
fpassthru ($f); }
?>
It's not exactly a webform, but it's CGI, though. I also though PHP was hard before
.