PDA

View Full Version : File Upload Broken =S


Tiger
09-29-2015, 09:17 AM
I'm having a problem with a file uploader that i got from the internet,

I keep getting Sax Errors, Not sure why?

Here the code:

<?php
if($_POST[upload] == "1")
{
$to = "profile/".$FILES['file']['tmp_name'], $to);
echo "Uploaded";
?>
<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label for="fileField"></label>
<input type="file" name="fileField" id="fileField" />
<input type="submit" name="button" id="button" value="Submit" />
</form>

Any ideas anyone?