Hello, is there any reason why this is still running my functions when the userfile is empty?
if (($userfile != "") && ($image_name != "")){
$image_name = "$image_name.jpg";
do_upload($userfile,$image_name); do_upload_thumb($userfile,$image_name);
}
Try a trim around the $userfile and $image_name.
sorry, i am not sure what you mean here??
ok I added the trim and it still is running the uploading function????
if ((trim($userfile != "")) && (trim($image_name != ""))){
Yes, I know that problem. On tw different servers I used you syntax and one of them still entered the routine. I solved the problem with $userfile != "none"
Do not ask me why. Also PHP has his interesting issues.