View Single Post
Old 07-10-2012, 09:11 PM   PM User | #7
mathruD
New Coder

 
Join Date: Apr 2011
Posts: 45
Thanks: 6
Thanked 0 Times in 0 Posts
mathruD is an unknown quantity at this point
Quote:
Originally Posted by Keleth View Post
Oh, you mean a literal refresh... yah, you'll lose your POST data (some browsers will ask if you want to resend data if you're on a page that sent POST data to itelf). Throw a session_start() as your first line, then you can store items into the $_SESSION superglobal
Yes, the POST data is being lost. I'm unsure of how to use a SESSION to retain everything. Does it need to go in an array? How should I go about storing it in the SESSION? Also, do I echo it back out of the SESSION instead of the POST?
mathruD is offline   Reply With Quote