I have a form that uploads a file. The field is called "link_on". I used to code this like this:
if ($link_on) {
copy("link_on", "../nav/$link_on_name")
or die("Couldn't Upload Your First File.");
}
Now, I'm trying to use $_FILES and it looks like this:
if ($FILES['link_on']) {
copy("$FILES[link_on][temp_name]", "../nav/$_FILES[link_on][name]")
or die("Couldn't Upload Your First File.");
}
. . . but it's dying. Any clues as to why?
Thanks.