menios Posted December 9, 2007 Share Posted December 9, 2007 I have a simple cart that works with sessions when checkout is clicked the user is prompted with a form to fill with his details. I managed to do the validation and to insert the data from the form but how can i extract the items froms my session and link them with my form? Link to comment https://forums.phpfreaks.com/topic/80918-extract-data-from-a-session/ Share on other sites More sharing options...
revraz Posted December 9, 2007 Share Posted December 9, 2007 $_SESSION variables are the same as the others, and you can access them the same way. Link to comment https://forums.phpfreaks.com/topic/80918-extract-data-from-a-session/#findComment-410511 Share on other sites More sharing options...
PC Nerd Posted December 9, 2007 Share Posted December 9, 2007 ie: $_SESSION['User_Name'] = "PC_Nerd"; echo $_SESSION['User_Name']; the first writes the value to the session variable, the second "reads" it from the variable. hope that helps Link to comment https://forums.phpfreaks.com/topic/80918-extract-data-from-a-session/#findComment-410525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.