The code now executes without error but the file location (in bold) does not work, the file is always copied to C:/ but the files name contions the location specified. for example the code below copies the file 'testFILENAME' to the C drive on the computer. Again any ideas would be greatly aprishiated.
<?php
if ( $FILES['image'] ['name'] != "")
{
copy ( $FILES['image'] ['tmp_name'], "/test" .$_FILES['image'] ['name'] ) or die ("could not copy");
}
else {die(" You need to select an image");}
?>
<html><head><title>Upload Sucsessful</title></head>
<body>
upload successful
<ul>
<li>Sent: <?php echo $FILES['image'] ['name']; ?>
<li>Sent: <?php echo $FILES['image'] ['size']; ?> bytes
<li>Sent: <?php echo $_FILES['image'] ['type']; ?>
</ul>
<a href="<?php echo $_FILES['image'] ['name']; ?>">
Click here to view the file</a>
</body>
</html>