I have the following code sample upload3.php:
PHP Form Upload
should be
and that subname should be in $_POST[' ']
it will look like
if (isset($_POST['subname'])) { echo "isset submit"; } else { echo "NOT isset submit"; }