What I want to do is this:
I have a form and is has a field for a file, I want the php script to upload the file if they selected one, but if they didn't continue on with the rest of the script.
how do i go about this?
Here is the code I tried:
if ($prog != "") {
copy("$prog", "/home/geekcha/public_html/incoming/join/".$prog_name)
or die("Couldn't copy the file!");
}
else {
continue;
}
but that returned this error:
Fatal error: Cannot break/continue 1 levels in /home/geekcha/public_html/php/join.php on line 8