I have a form for uploading images. If the browse field is empty I would like it to not process the following copy command, thus eliminating the error message it displays. I thought this would work.. but I have been proven wrong. Anyone have any insight?
**snip** if ($_FILES['imagefile']['tmp_name']) { copy ($_FILES['imagefile']['tmp_name'], "../images/".$_FILES['imagefile']['name']) or die ("Could not copy"); } **snip** Thanks, Bryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php