niche Posted November 1, 2010 Share Posted November 1, 2010 My testing suggests $_POST is automatically emptied upon script completion?If so, is there a reference? Link to comment Share on other sites More sharing options...
thescientist Posted November 1, 2010 Share Posted November 1, 2010 well, what's the test?here's the manual page on POSThttp://php.net/manual/en/reserved.variables.post.phpI think it would be lost after the PHP finishes running for the particular page. Link to comment Share on other sites More sharing options...
jeffman Posted November 1, 2010 Share Posted November 1, 2010 There might not be. All variables and their values are destroyed when the last line of the script terminates. This includes $_POST. The only way to preserve state is to use sessions. Link to comment Share on other sites More sharing options...
niche Posted November 1, 2010 Author Share Posted November 1, 2010 That's what I needed to know for a fact because I wasn't able to echo $_POST in a separate script.Thank-you very much thescientist and Deirdre's Dad.Niche Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.