You are doing it wrong. Please see the help page and a code sample:
http://php.net/manual/en/reserved.variables.files.php[
^].
First problem I can see is: the value of the attribute
action
of the
form
element should be some URL, the PHP page processing you HTTP request "POST"; but you put there… — who knows what, who knows why? Fix it first, and then see if you have other problems. There is a good amount of samples everywhere, so you can start with a working sample and modify it to your needs.
—SA