Posted by Rivera on 08/25/05 01:28
Can anyone tell me why this doesn't work it seems simple enough.
The if($File) is always false and i dont understand why.
file name is index2.php
<html>
<body>
<?PHP
if($File)
{
print ("File Name " . $File_name . "\n");
print ("File Name " . $File_size . "\n");
if(Copy($File,$File)){
print "Uploaded\n";
unlink($File);
}
else print "Cannot Upload file " . $File_name;
}
print("<form action=index2.php method=POST enctype=multipart/form-data>
<p>Pictures:
<input type=File name=File />
<input type=submit value=Send />
</p>
</form>");
?>
</body>
</html>
Thanks a lot!
[Back to original message]
|