jo.nova Posted August 22, 2006 Share Posted August 22, 2006 I've created a multi-page form that I want to have store information until the last page where it will then be entered in a DB. The first page is a <form> that calls the second page upon submittal. The second page is a PHP script that validates the data then displays a java file-upload applet. The java applet calls it's own PHP script (which I've modified for my needs). This second page can successfully echo test variables from the $_SESSION array. After uploading files, the user clicks a "Next" button, which is actually a submit button that loads the third and final page.The third page will contain a confirmation number and will do three other things: 1) enter all variables into the DB, 2) email the user and the administrator, and 3) destroy the session. At this point, I am unable to echo any $_SESSION variables on the third page, but I AM able to echo them on the second page.Do I have to do something special for the third page to acknowledge the session? What am I missing here?- Joe Link to comment https://forums.phpfreaks.com/topic/18327-gettin-the-hang-of-_session/ Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Are you including session_start() in that third page? You'll need that in order to be able to access the $_SESSION variables. Link to comment https://forums.phpfreaks.com/topic/18327-gettin-the-hang-of-_session/#findComment-78734 Share on other sites More sharing options...
jo.nova Posted August 22, 2006 Author Share Posted August 22, 2006 Corona, you're the dopest! I didn't know that! I'll try it, thanks! Link to comment https://forums.phpfreaks.com/topic/18327-gettin-the-hang-of-_session/#findComment-78735 Share on other sites More sharing options...
jo.nova Posted August 22, 2006 Author Share Posted August 22, 2006 It worked! YOU are the coolest. Link to comment https://forums.phpfreaks.com/topic/18327-gettin-the-hang-of-_session/#findComment-78738 Share on other sites More sharing options...
Corona4456 Posted August 22, 2006 Share Posted August 22, 2006 Heh... glad it worked. Link to comment https://forums.phpfreaks.com/topic/18327-gettin-the-hang-of-_session/#findComment-78751 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.