AdonaiEchad wrote:
> There is a file upload that I have and I am getting an
error...
> Notice: Undefined variable: file_list in
C:\vhosts\mysite\upload\index.php on
> line 20
> On line 20 in my php page happens to be the following
code that is giving an
> error...$file_list .= "<option value=\"$file\"
>$file</option>";
What that's telling you is that you're adding a value to a
variable that
doesn't yet exist. In your case, it probably doesn't matter,
but using
undefined variables is a potential security risk. To
eliminate the
warning - and the risk - declare $file_list before using it:
$file_list = '';
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/