Hi !
You asked for the code ...
Here you go :
<html>
<body>
<form action="<?global $PHP_SELF; echo $PHP_SELF?>" method=POST
ENCTYPE="multipart/form-data">
<table>
<tr>
<td>Select File:</td>
<td>:</td>
<td><input type=file name=userfile></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type=submit value=Upload></td>
</tr>
</table>
</form>
<?php
//the code is not finished due to those problems ...
//when I proceed with the submit button, I get white screen (nothing at all)!
print_r ($HTTP_POST_VARS);
global $userfile;
global $userfile_name;
$dir = "\upload";
$temp = "\temp";
$twhere = $temp . "/" . $userfile_name;
$where = $dir . "/" . $userfile_name;
rename("$userfile", "$temp/$userfile_name");
copy("twhere", "$where");
unlink("$twhere");
echo "OK: File \"$userfile_name\" uploaded succesfully";
?>
</body>
</html>
Thanks
Nikola
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]