Thanks goldbug. I appreciate your help. However, let me explain a scenerio, and maybe you or someone can give me the best method.
Say I have a Form, we will call it FormView.php. Now what I need to do is submit that form to an Action, will call it FormAction.php.
Ok, so now I need to display PageView.php with some data based on FormView.php and what FormAction.php retrieved from the database. But I don't want to persist this in the Session. After I leave PageView.php, the data is meaningless. I would rather not be left with the cleanup of removing Session data if I don't have to.
In J2EE, I have the ability to do this. It's called request forwarding. When I submit a form to an action, in php, I get the form attributes from $_POST, in J2EE, I get them with request.getParameter(String).
Now, normally, if I redirect to another page now, the request is lost because it is only available for the initial request from the Server. But if I forward that request, the request objects remain available to the next action or view.
I am wondering if there is something this simple in PHP. I don't want to persist this in a DB. That just adds more complexity to my pages plus extra hits to the DB that should be unecessary IMO.