For a temporary fix, remove this part of the code:
Code:
// Check file type
if (!eregi("\.jpg$", "\.gif$", $userfile_name)) {
print "Illegal file type. Only files with .jpg and .gif extensions can be uploaded.<br>Please <a href=\"javascript:history.back()\">click here</a> to go back and try again.";
exit;
}
I'll see why this code wasn't working as soon as I get a chance. Regardless, the code that the user is given is an img code, so it won't display if it's not an image.
-jim