Say you have 2 scripts: index.php which displays a list of items and delete.php which deletes the items (it processes the request only).
I send the IDs of the items to be deleted from Index.php to delete.php through a form but I want to send those IDs back to index.php so that I can prompt the user that he just deleted those items and present him with an undo possibility.
How do I get the IDs to index.php back from delete.php?
The only way I know how to send variables form script to script is through $post, $get, which require form submission and $_Session, which I don't think suits the purpose because I'm looking for something more temporary....
Is there a way? Should I just use $_session?
I'm not looking for code, just theory.