I was wondering if anyone on here can help me. I’m building a basic management system for the submissions on my website. I have two sections, new and old submissions. What i’d like to know, is there an easy way to redirect a user to their previous page. At the moment my delete.php file just redirects to the new_submissions.php page, this is ok but it seems a bit odd for it to do this when you’re deleting an old submission and vice versa.
Would somebody be able to give me some tips or pointers on how to solve this small issue. I don’t know if this would be way ott but how about some sort of code that sets a global variable for the last page you visited so that when the delete.php file is run, the header will redirect to the page name in the $variable? Or am i being way stupid here?