I would like a "popup" to appear when a user clicks the delete button in a CMS. I have the following code:
<?php echo ("<a href='delete_donor.php?id=$row->id' class='delete_icon2' title='Delete Donor' onclick='return confirm('Are you sure you want to delete this entry?')'></a></td>");?>
I've used the "onclick" option successfully before, but not in a PHP environment. The above code seems to ignore the "onclick" statement. I'm thinking I may have an issue with the quotation marks and have tried several other options but to no avail.
Thanks for your help!!