\n"; $points[] = $x; $points[] = $y; } if ($pic == 1) { header("Content-Type: image/png"); $image = ImageCreate(400, 400); # Make an image 400x400 $yellow = ImageColorAllocate($image, 255,255,0); # Allocate a color $red = ImageColorAllocate($image, 255,0,0); # Allocate a color ImageFilledPolygon($image, $points, $numpoints, $red); # Write the image ImagePNG($image); } else { header("Content-Type: text/html"); echo "

Here's the Imagemap

\n"; echo "\n"; echo "\n"; echo "\"Red\n"; # The " ends here } ?>