<?php
if ($_POST['upload']){
$title = $_POST['title'];
$path = "uploads/".$HTTP_POST_FILES['ufile']['name'];
if($ufile !=none)
{
if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{
echo("yipee");
}
else
{
echo("Error processing your request. We're sorry for the inconvience. Contact atomic-noodle or blah569 if this problem persists, and one of them will try to help you.");
}
}
}
if (!$_POST['upload']){
?>
<form method="post" name="upload">
<p>Browse:</br>
<input name="ufile" type="file" id="ufile" size="50" /></br>
</p>
<p>
Filename:
<input type="text" class="input-s" name="title"/></br>
</p>
<input type="submit" name="upload" class="btn" value="Upload!" />
</form>
<?php
}
?>