php - Delete confirmation link -


this question has answer here:

echo '<td><a href="candidates.php?id=' . $row['candidate_id'] . '">delete candidate</a></td>'; 

how can add confirmation message before data deleted? asking sure

try

echo '<td><a href="candidates.php?id=' . $row['candidate_id'] . '" onclick="return confirm('are sure...?')">delete candidate</a></td>'; 

Comments

Popular posts from this blog

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -