<?php // Link to the class files require_once 'FileNotesRepo.php'; require_once 'Notes.php'; $notesRepo = new \abhijeet\NFS\FileNotesRepo(); ?> <!-- Logic for the delete page --> <?php if ($_SERVER['REQUEST_METHOD'] == "POST" && !empty($_POST['id'])) { ?> <?php $notesRepo->deleteNotes($_POST['id']); ?> <!-- Delete page --> <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title> Delete note </title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <!-- jQuery library --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- Latest compiled JavaScript --> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> </head> <body> <div class="container-fluid">