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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.