Re: Subject: Image / file uploader

From: Date: Fri, 30 Apr 2004 18:42:08 +0000
Subject: Re: Subject: Image / file uploader
Groups: php.db 
Request: Send a blank email to php-db+get-34218@lists.php.net to get a copy of this message
BTW that line should read "if ($dest =='') " not "if ($dest = '')" You need 2 equals signs to test for equality, using one you are setting $dest to an empty string. It's a miracle it ever worked ;-) Cheers - Neil
                if ($dest = '') {
                        if (move_uploaded_file($source, $dest)) {
                                echo ("<p id='message'>Image and Bio has been successfully stored.</p> ");
                        } else {
                                echo ("<p id='message'>Image could not be stored.</p>");
                        }


« previous php.db (#34218) next »