in the delete button that is in the repeat region:
<input type="button" value="Löschen" class="likebeyondcom" id="DeleteConfirm" name="DeleteConfirm" onClick="document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';">
add an onlclick event to pass the current ID to the delete message
<input type="button" value="Löschen" class="likebeyondcom" id="DeleteConfirm" name="DeleteConfirm" onClick="document.getElementById('deleteBox').style.display = 'block';document.getElementById('WADADeleteRecordID').value = <?php echo($row_portfolio['ID']); ?>;document.getElementById('deleteMessage').style.display = 'table';">
In the delete message:
<div class="messageContent">
Sollen die Daten für immer gelöscht werden?<br/><br/>
<input type="submit" value="Löschen" class="likebeyondcom" id="Delete" name="Delete" />
add a new hidden element used to capture the ID passed by the delete button onclik:
<div class="messageContent">
Sollen die Daten für immer gelöscht werden?<br/><br/>
<input type="hidden" name="WADADeleteRecordID" id="WADADeleteRecordID" value="<?php echo($row_portfolio['ID']); ?>" />
<input type="submit" value="Löschen" class="likebeyondcom" id="Delete" name="Delete" />
Then in the delete behavior, bind the key column to the WADADeleteRecordID form element in the delete message container.