##########HTML PAGE##################
File Upload Form
This form allows you to upload a file to the server.
#############PHP PAGE########################
Script Submission
order
\n";
echo "Version:".$ver."
\n";
echo "Description:".$desc."
\";
echo "File Uploaded:".$file."
\";
?>
The file has been successfully uploaded ';
}
else
{
switch ($_FILES['uploadFile'] ['error'])
{ case 1:
print ' The file is bigger than this PHP installation allows
';
break;
case 2:
print ' The file is bigger than this form allows
';
break;
case 3:
print ' Only part of the file was uploaded
';
break;
case 4:
print ' No file was uploaded
';
break;
}
}
?>