Ok guys,
I have coded a File upload system with a password
Here
and it will not upload the file here is the code:
code:
<?php
$status = $_GET['upload'];
if ($status=='1')
{
$form_password = $_POST['password'];
include("config.php");
if ($form_password == $password)
{
copy("$file","$upload_folder");
echo "<center><div class='norm'><b> was successfully uploaded To go to the file you have uploaded go to http://www.files.cloakshape.org/files</b></div></center>";
}
else
{
echo "<center><div class='norm'><b>The upload password was not correct, please go back and re-enter the password correctly.</b></div></center>";
}
}
else
{
?>
<div class="norm">This is a upload system, currently in progress of making </div>
<br>
<form action="<?php
$self_file = $_SERVER['PHP_SELF']; echo "$self_file"; ?>?upload=1" method="post" enctype="multipart/form-data" name="form1">
<table width="300" border="0" align="center">
<tr>
<td class="field">Password</td>
<td><input name="password" type="password"></td>
</tr>
<tr>
<td class="field">File to upload</td>
<td><input name="file" type="file" class="upload"></td>
</tr>
<tr>
<td width="336"><input type="submit" name="Submit" value="Upload" class="button"></td>
</tr>
</table>
<?php
}
?>
</form>
</div>
</body>
</html>
then the external file (config.php)
code:
<?php
$password = '(my password)';
$upload_folder = '/files/';
?>
And it wont upload it too the files bit in my sever
Thanks for any help
Nathan