The PHP way of doing this would be using a dialog system inside php.for example GTKDialogs:
http://www.kksou.com/php-gtk2/articles/setup-a-dialog-box---Part-2---simple-yes-no-dialog.php
The javacript way is probably a bit easier, but remember when javascript is turned off, this does not work (except if you check javascript to be enabled and then add this!?)
This could be with a onclick handler like tsvanharen posted, or with a simple text dialog inside the page instead of a nagging popup.
<a onClick="$('deletefromtable').show();"></a>
<div id="deletefromtable" style="display:none;">
Do you really want to do this?<br/>
<a href="deleteit.php">Yes</a>|<a onClick="$('deletefromtable').hide();">No</a>
</div>
Ben prototip kullanmak (dolayısıyla $ () etiketi ve show () / hide ()) bunun için. ancak kolayca prototip olmadan çalışmak için değiştirebilirsiniz:
<a onClick='document.getElementById("deletefromtable").style.display = "block";' href="#">click here to delete</a>
<div id="deletefromtable" style="display:none;">
Do you really want to do this?<br/>
<a href="deleteit.php">Yes</a>|<a onClick='document.getElementById("deletefromtable").style.display = "none";' href="#">No</a>
</div>
Yine, bu javascript olmadan çalışmaz, ama neredeyse hiçbir seçenek yok.