Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Löschlink
- <a href="index2.php?page=termine_edit&action=delete&id=<?php echo $data['idtermine'] ?>&email=urlencode(<?php echo $data['email'] ?>) id="löschen">Termin ablehnen</a>
- // Sexy Löschlogik
- }elseif ($action == 'delete' && isset($_GET['id']) && isset($_GET['email'])) {
- // Löschlogik ausführen
- $email = urldecode($_GET['email']);
- $id = mysql_real_escape_string($_GET['id']);
- $sql2 = "DELETE FROM termine where idtermine = $id";
- query($sql2);
- mail($email, 'Betreff', 'Nachricht', 'From: Nadelöhr <booking@nadeloehr.de>');
- header('location: index2.php?page=termine_edit');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement