A have a delete link which goes to another page, call a function, if the function is successful, then I sent the user back to the page where they clicked delete.
I use this to go back:
if ($booking->deleteBooking($_GET['id']))
{
header('Location: ' . $_SERVER['HTTP_REFERER']);
}
My link would look something like this:
/calendar.php?id=1&month=04&day=25&year=2014&t=11&v=true&f=true&reserved=true
Can I trim the link and remove &reserved=true
when it's sent back?