Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- deletepost.php?id=" . $row["id"] . "&album=" . $row["photoalbum"];
- ?>
- <script>
- function confirmdelete(){
- swal({
- title: 'Delete Post',
- text: 'Are you sure you want to delete this post? You cannot undo this.',
- type: 'warning',
- showCancelButton: true,
- confirmButtonText: 'Delete Ride',
- cancelButtonText: 'Cancel'
- }).then((result) => {
- if (result.value) {
- window.location = '<?php echo $url; ?>'; }
- })
- }
- </script>
- <a href="deletepost.php?id=<?php echo $row["id"]; ?>&album=<?php echo $row["photoalbum"]; ?>" onclick="confirmdelete()"> <b>Delete Post</b></a><br><br>
- <a href="#" onclick="confirmdelete()"> <b>Delete Post</b></a><br><br>
Add Comment
Please, Sign In to add comment