Howdy.
Anyone see any problems here:
Code:
<form action"includes/uploaditems.php" method="post" enctype="multipart/form-data"> <span class="verd14boldblue">CALENDAR</span><br />
<br />
<strong>UPLOAD LATEST FILE</strong><br />
<input type="file" name="userfile"/><br />
<input type="submit" value="Upload File" />
<br />
<br /></form>
Or on the uploaditems.php page:
Code:
<?php
$uploaddir = '../../documents/';
$uploadfile = $uploaddir. $_FILES['userfile']['name'];
print "<pre>";
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
print "File is valid, and was successfully uploaded. ";
print "Here's some more debugging info:\n";
print_r($_FILES);
} else {
print "Possible file upload attack! Here's some debugging info:\n";
print_r($_FILES);
}
print "</pre>";
?>
?????
Because it doesn't do anything but reload the original page -- no error codes, nothing. That last code segment is the entire uploaditems.php page, but it ain't uploading items. It's late, and I'm sure I'm missing something . . . . Any help would be appreciated.