I need to add a confirm statement for when people click to delete on my page.
I can't seem to get it working where do I put the java tags etc. in the code below:
echo"<td><img src='erase.jpg'><a href='delete.php?item=$Item'>Erase</a></td>"
And here's the code for the confirmation in Java:
onclick="return confirm('Are you sure you want to delete?')"