My problem is as follows, I have a form where the user uploads, so that's fine, but I'd like him to insert it with another name, but if so, it inserts blank into the database.
$files=$rand."_".$_FILES['upload']['name'];
$array=implode(",", $files);
echo "<script>alert('Array: ".$array."')</script>";
With the code above, it sends the field $array
empty but if I make $files=$_FILES['upload']['name'];
it sends right.