search

Home  >  Q&A  >  body text

How can I make this sentence so that when I click delete, it will pop up [Confirm deletion? 】

echo '<td class="td_bg"><a href="all_parts_delete.php?id=' . $row['id'] . '" onclick="return confirm("Are you sure you want to delete it? ?") >Delete</a></td>';


FllllllFllllll2514 days ago1269

reply all(1)I'll reply

  • 威尼斯

    威尼斯2018-03-09 10:04:32

    echo '<td class="td_bg"><a href="all_parts_delete.php?id=' . $row['id'] . '" onclick="if(confirm(\'Confirm you want Delete?\')==false)return false;" >Delete</a></td>';

    reply
    2
  • Cancelreply