php - Delete confirmation link -
this question has answer here:
- javascript before leaving page 6 answers
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
Post a Comment