This question already has an answer here:
I have an admin panel where you can upload and delete articles from. I want a confirmation to pop up when you select the article you want to delete, to prevent the admin from accidentally deleting the articles.
<form action="delete.php" method="get" >
<select onchange="this.form.submit();" name="article_delete">
<?php foreach($articles as $article) { ?>
<option value="<?php echo $article['article_id']; ?>">
<?php echo $article['article_title']; ?>
</option>
<?php } ?>
</select>
</form>
</div>