Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The PHP way of doing this would be using a dialog system inside php.for example GTKDialogs: <a href="http://www.kksou.com/php-gtk2/articles/setup-a-dialog-box---Part-2---simple-yes-no-dialog.php" rel="nofollow noreferrer">http://www.kksou.com/php-gtk2/articles/setup-a-dialog-box---Part-2---simple-yes-no-dialog.php</a> 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.</p> <pre><code>&lt;a onClick="$('deletefromtable').show();"&gt;&lt;/a&gt; &lt;div id="deletefromtable" style="display:none;"&gt; Do you really want to do this?&lt;br/&gt; &lt;a href="deleteit.php"&gt;Yes&lt;/a&gt;|&lt;a onClick="$('deletefromtable').hide();"&gt;No&lt;/a&gt; &lt;/div&gt; </code></pre> <p>I use prototype (hence the $() tag and the show()/hide()) for it. but you can easily change it to work without prototype:</p> <pre><code>&lt;a onClick='document.getElementById("deletefromtable").style.display = "block";' href="#"&gt;click here to delete&lt;/a&gt; &lt;div id="deletefromtable" style="display:none;"&gt; Do you really want to do this?&lt;br/&gt; &lt;a href="deleteit.php"&gt;Yes&lt;/a&gt;|&lt;a onClick='document.getElementById("deletefromtable").style.display = "none";' href="#"&gt;No&lt;/a&gt; &lt;/div&gt; </code></pre> <p>Again, this does not work without javascript, but almost no options do.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload