I got a little bit of a problem...
I got the following code in a file of mine( a page to edit files)
if(file_exists("$filename")) {
echo "<script>result = confirm(\"Overwrite current '$filename'?\");
if(!result) history.go(-1);</script>";
}
the problem is...
even if the user clicks cancel... It continues with the saving than goes back to the previous page...
Yes, I know why it does this.. but I'm wondering if there is a work around to this, a way I could still do this.. In a way im not thinking of
Thanks