Ok, following what I've learned I;ve got the filename to pass thru with the URL. No problem. Problem is I get a 'no such file or directory. Now when I echo the variable (filename and the absolute directory) they echo god on he delete page.
Here's what I have:
Display page:
//send filename with URL to FileAdminDelete
echo "<a href=\"FileAdminDelete.php?FileToDelete=$file\" target=\"_self\" class=\"minilinks\">$file</a>";
//FileAdmin Page:
//echo's ok
echo "FileToDelete: ";echo "$FileToDelete";echo"<br>";
function deletefile($FileToDelete)
{
$systemroot="http://url.cm/userFiles/";
unlink('$systemroot$FileToDelete');
//echo's ok
echo "ToDelete Path&File: ";echo "$systemroot$FileToDelete";echo"<br>";
}
deletefile($FileToDelete);
Can anyone help me here?