php - Deleting a database value after a confirmationscreen - value not deleting -


i posted likewise question yesterday ran other problem. made confirmation screen use of javascript, after pressing "ok" value isn't deleted.

this code:

<script type="text/javascript"> function confirmation() {     var answer = confirm("weet u zeker dat u deze activiteit wilt verwijderen?");     if (answer){         alert("de activiteit wordt nu verwijderd.");         window.location ="roosters_verwijderen.php";     }     else{         alert("de activiteit niet verwijderd.");      } } </script> 

this button:

<a href="roosters_verwijderen.php?activiteitid='. $row['activiteitid'] .'" onclick="confirmation(); return false"><img src="iconen/kruis.png" border="0"></a> 

the problem here is, "activiteitid" isn't sent page "roosters_verwijdweren.php" anymore.

can me solve this?

try code of function:

<script type="text/javascript"> function confirmation() {     var answer = confirm("weet u zeker dat u deze activiteit wilt verwijderen?");     if (answer){         alert("de activiteit wordt nu verwijderd.");         return true;     }     else{         alert("de activiteit niet verwijderd.");         return false;     } } </script> 

and button:

<a href="roosters_verwijderen.php?activiteitid='. $row['activiteitid'] .'" onclick="return confirmation();"><img src="iconen/kruis.png" border="0"></a> 

Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -