Can anyone help me with this....
I only want Jpeg's submitted, and i can't seem to get the verification method ot work, doh
$img_Pattern = "([0-9a-z-_]+).(jpeg)|(jpg)|(JPG)|(JPEG)";
if ($file) {
$file_name = str_replace(" ","_",$file_name);
if (eregi($img_Pattern, $file_name)) {
include("shrinkimage.php");
$FILENAME="process_fldr/" . $FILENAME;
} else {
$FILENAME= "../images/noavatar.gif";
}
} else {
header("Location: add.php?Msg=ONLY JPEG FILE TYPES!");
}