<?php if (!isset($_GET['removed'])) { $id = $_GET['id']; $documents->remove($id); header("Location: ?p=d&a=r&removed"); } ?>