Guest User

Untitled

a guest
Jul 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. <?php
  2. deletepost.php?id=" . $row["id"] . "&album=" . $row["photoalbum"];
  3. ?>
  4. <script>
  5. function confirmdelete(){
  6. swal({
  7. title: 'Delete Post',
  8. text: 'Are you sure you want to delete this post? You cannot undo this.',
  9. type: 'warning',
  10. showCancelButton: true,
  11. confirmButtonText: 'Delete Ride',
  12. cancelButtonText: 'Cancel'
  13. }).then((result) => {
  14. if (result.value) {
  15. window.location = '<?php echo $url; ?>'; }
  16. })
  17. }
  18. </script>
  19. <a href="deletepost.php?id=<?php echo $row["id"]; ?>&album=<?php echo $row["photoalbum"]; ?>" onclick="confirmdelete()"> <b>Delete Post</b></a><br><br>
  20.  
  21. <a href="#" onclick="confirmdelete()"> <b>Delete Post</b></a><br><br>
Add Comment
Please, Sign In to add comment