My sql query is the same as the other scripts which work fine.. but I am getting these errors
Notice: Undefined index: uploadedfile in C:\wamp\www\pdf_update\update2.php on line 184
Notice: Undefined index: uploadedfile in C:\wamp\www\pdf_update\update2.php on line 186
Notice: Undefined index: uploadedfile in C:\wamp\www\pdf_update\update2.php on line 188
this is line 184
$target_path = '/public_html/sono-tek.com/pdf_download/' . $language . '/' . $product . '/' . basename($_FILES['uploadedfile']['name']);
This is line 186
$filename = basename( $_FILES['uploadedfile']['name']);
this is line 188(which is an if statement)
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded to ". $file_path;
} else{
echo "<span id=\"uploaderror\">There was an error uploading the file, please try again!</span>";
}
please help im not sure what these errors mean