And maybe this is related:
Using the code below (I had something in a different file, but I wrote this stuff out just for testing. I get the same results with both things.) I get... nothing. The page just appears again without the slightest hint it did anything. Actually, on the other one, I have more error checking and it catches that the move_uploaded_file() fails and reports it appropriately.
Here's the test code:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<?php
if(isset($_POST['image']))
{
echo $_FILES['image']['tmp_name'];
move_uploaded_file($_FILES['image']['tmp_name'], "./$_POST[name]");
echo "<img src='./$_POST[name]' />";
echo "<img src='./$_FILES[image][tmp_name]' />";
}
?>
<form method="post" action="test.php" enctype="multipart/form-data">
<table>
<tr>
<td>File:</td>
<td><input type="file" name="image" /><input type="hidden" name="MAX_FILE_SIZE" value="40000" /></td>
</tr>
<tr>
<td>Save as:</td>
<td><input type="text" name="name" /></td>
</tr>
</table>
<input type="submit" value="Upload" />
</form>
</body>
</html>
--EDIT--
Acutally, after adding the enctype="multipart/form-data" to the form, I now get nothing. It just reloads.