View Full Version : File Upload Broken =S

09-29-2015, 10: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:

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" />

Any ideas anyone?