Returning to previous page that triggered a script

So I have a form that triggers a process.php page that runs a database script. How can I return to the page that summoned the script with a message about the status of the operation?

Hi Nate,

There are plenty of examples of this in the Gibbon code base, and you can look in any *Process.php. However, some are written in an older style, and due to be refactored. The example below, from the Mastery Transcript additional module, is a clean one, and good to base your work on. Check out lines 98-106:

In terms of dealing with the return, check out lines 38 to 42 of the following file:

Hope this helps!