Habs mich noch mal ein bisschen umgeschaut und es jetzt doch ein bisschen anders gelöst. Hänge wenn es per JavaScript bestätigt wurde, ne Info an die URL und werte diese aus. Hab mich dabei ein bisschen an phpMyAdmin gehalten, dort siehts nämlich so aus:
Code:
function confirmLink(theLink, theSqlQuery) {
// Confirmation is not required in the configuration file
// or browser is Opera (crappy js implementation)
if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
return true;
}
var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
if (is_confirmed) {
if ( typeof(theLink.href) != 'undefined' ) {
theLink.href += '&is_js_confirmed=1';
} else if ( typeof(theLink.form) != 'undefined' ) {
theLink.form.action += '?is_js_confirmed=1';
}
}
return is_confirmed;
}
EDIT: Es muss mit PHP natürlich noch geprüft werden ob $_GET['is_js_confirmed'] == 1 und wenn nicht eine zusätzliche Abfrageseite geöffnet werden.
Vielleicht kann das ja jemand anders mal gebrauchen.