PHP Newbie here, but here's my problem:
I'm trying to add a prompt to my delete story hyperlink, so that I won't accidentaly delete a story.
The current echo looks like this:
echo '<a class="editstorylink" href="deletestory.php?id=' .$row['id'] .'">';
echo '' . delete . '</a>';
I would like to add the following function inside the hyperlink (currently getting errors when i try to add it):
onClick="javascript:return confirm('Are you sure?')
I can't get it to work, any ideas?





Bookmarks