Redirect from delete button
On a page where an item is to be deleted I have placed a delete icon
<input type="button" class="formButton ResultsPageButton unstyled DeleteButton" value="" onclick="document.getElementById('WADADeleteRecordID').value=<?php echo($WADAboats->getColumnVal("RecNo")); ?>;document.getElementById('deleteBox').style.display = 'block';document.getElementById('deleteMessage').style.display = 'table';" />
I need the button to also to go to delete_confirmation.php
Can you please say how this can be achieved.
I have attached the files.