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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -