imarockstar Posted April 6, 2009 Share Posted April 6, 2009 I have a from that posts to a file that inserts the data to a database ... It works fine, but what I want done is all the post values to be stored into a session, so I can do validation .. But I am not sure on how to do that ... Is there a way to take ALL post data and place it into a session, each value its own session data ? any help ?? thanks bobby Link to comment https://forums.phpfreaks.com/topic/152817-solved-session-help/ Share on other sites More sharing options...
Ayon Posted April 6, 2009 Share Posted April 6, 2009 session_start(); & $_SESSION would be a good start Link to comment https://forums.phpfreaks.com/topic/152817-solved-session-help/#findComment-802522 Share on other sites More sharing options...
jackpf Posted April 6, 2009 Share Posted April 6, 2009 Why can't you just validate it in the script that gets the form data..? Link to comment https://forums.phpfreaks.com/topic/152817-solved-session-help/#findComment-802525 Share on other sites More sharing options...
laffin Posted April 6, 2009 Share Posted April 6, 2009 $_SESSION['posted']=$_POST; Remember $POST is an array and this just creats a multi-dimensional array. as $_SESSION['posted']['username'] or wut have u.... Link to comment https://forums.phpfreaks.com/topic/152817-solved-session-help/#findComment-802534 Share on other sites More sharing options...
imarockstar Posted April 6, 2009 Author Share Posted April 6, 2009 rad ... that should work fine !!! thanks guys !!!! Link to comment https://forums.phpfreaks.com/topic/152817-solved-session-help/#findComment-802547 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.