i have problem to check if the picture is jpg
if ($_FILES["fname"]["error"] > 0) {
**$imgData = " hyperlink /holder.jpg";**
}
else {
$imgData ="hyperlink/".$_FILES["fname"]["name"];
}
// only accept jpg images pjpeg is for Internet Explorer.. should be jpeg
if (!($_FILES["fname"]["type"] == "image/pjpeg") ) {
print "I only accept jpg files!";
exit(0);
}
when it goes to first statment in the first if statmenet (the one that is bold) it always give I only accept jpg files!
how can i fix it ?
thanks in advancee