I have this form that can upload an image, movie, and an mp3, but none of them are required so i have this for the movie and same thing for mp3 just different var names. The thing that isn’t working is if i don’t browse to anything in the video or mp3 section it still does the stuff that is in the script below when it shouldn’t. Any ideas?
if(!empty($_FILES['movfile'])) {
include('mov_work.php');
$vars = uploadMovie($_FILES['movfile'], "pr");
$ms = explode(":", $vars[2]);
$m = "INSERT INTO mov VALUES('', '{$ms[0]}', '${ms[1]}', '{$mov_title}', '{$mov_content}', NOW(), '{$month}', '{$day}', '{$year}', '{$vars[0]}', '{$pub}', '{$vars[1]}', '{$vars[3]}', '{$vars[2]}')";
//$m_id = mysql_insert_id();
}