i think the comparision is case sensitive. try strlower for image types and compare with lower cases.
also note that for IE image type for jpg is pjpeg so include this to Friendship is always a sweet responsibility, never an opportunity. HaSeEb IqBaL. 0300-4258030 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php