When you printed the string $imgupload, what were its contents?
-Original Message-
From: Todd Moy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 18, 2001 12:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] problemhandling form variables
I have an upload field on a form that is
I have an upload field on a form that is optional for the user. Hence,
they may post an image or not. If not, a default image is assigned. Here
is my logic and the corresponding error:
/*$imgupload is the file field on the form*/
if(!$imgupload){
$imglink=$imgpath.$defaultimg; //