Re: Subject: Image / file uploader

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>");
}

-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux