I have files that are being created in my code on our server. I was using a link to give the option to delete which would set the case variable to delete through $_post.....
I recently changed the code to use session variables. for the switch... so now the code I used to delete the files...
echo"<br><a href=$dir".$file2.">$file</a> | Date: $d | <a href=export.php?company=delete&f=$dir".$file2.">Delete</a>";
when it was clicked then it would run this script
case "delete":
unlink($_REQUEST['f']);
$_SESSION['company'] = "success";
header("Location: export.php");
break;
doesnt change the session variable to delete so I cant get the delete to work...
how do I change the session variable in the link so my existing code will work.
I also saw some code that would unlink the file using a function call.. Same problem though.. how do I call the function from a link?
ONE other thing...
While looking for answers I saw that if people disabled cookies it also disabled sessions... Should I just go back to passing variables through $_Post?
Thanks