<script language="JavaScript">
<!--
function restore(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}
function delete(what){
if (confirm("Are you sure you want to overwrite the database with the file " + what + "?")) {
window.location = "backups.php?action=restore&file=" + what;
}
}
//-->
</script>
I am calling the functions with a link: <a href="Javascript:delete('filename')">Delete</a>
Why doesn't this work?