firstly i created a simple upload script called upload.php, with the following code
<html>
<head>
<title>File Upload Form</title>
</head>
<body>
This form allows you to upload a file to the server.
<form action="getfile.php" method="post">
Type (or select) Filename: <input type="file" name="uploadFile">
<input type="hidden" name="MAX_FILE_SIZE" value="25000" />
<input type="submit" value="Upload File">
</form>
</body>
</html>
then i created a getfile script called getfile.php, with following code
<html>
<head>
<title>Process Uploaded File</title>
</head>
<body>
<?php
if ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'],
"../uploads/{$_FILES['uploadFile'] ['name']}") )
{ print '
The file has been successfully uploaded </p>';
}
else
{
switch ($_FILES['uploadFile'] ['error'])
{ case 1:
print '
The file is bigger than this PHP installation allows</p>';
break;
case 2:
print '
The file is bigger than this form allows</p>';
break;
case 3:
print '
Only part of the file was uploaded</p>';
break;
case 4:
print '
No file was uploaded</p>';
break;
}
}
?>
</body>
</html>
nothing happens, i tested it and nothing uploads!!!! whats the problem?