RE: [PHP-DB] problemhandling form variables

2001-09-18 Thread Rick Emery
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

[PHP-DB] problemhandling form variables

2001-09-18 Thread Todd Moy
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; //