EchoFool Posted September 8, 2007 Share Posted September 8, 2007 I have a purchase system where by the user selects options over a space of 3 pages.....using forms.. each choice is carried through right to the process page which is the 4th page, but im trying to find a way so that the user's selections become null if they go to a completely different page or they skip a page... or if they go back to the first page or press the back button... this would help to avoid a double entry of some of the same items... how can this be done? I don't use sessions so i cannot kill a session as a session is not needed because its using forms throughout the entire thing.. what would you guys suggest ? Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/ Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 sessions. or cookies, but might as well use sessions imo. Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/#findComment-344362 Share on other sites More sharing options...
SirChick Posted September 8, 2007 Share Posted September 8, 2007 how exactly can i use one though cos they could go to any of the 400 pages i have made i can't kill the session cos session carries userID globally.... Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/#findComment-344423 Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 dont' kill the session, just empty the session variables that you need emptied. if you want to erase a session variable, you can unset() it or set it = ""; for instance, $_SESSION['last_page'] = ""; will set that value to "" without killing the session. Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/#findComment-344427 Share on other sites More sharing options...
SirChick Posted September 8, 2007 Share Posted September 8, 2007 so i would have to put that on like the 400pages that they might change the url to ? also who keeps hacking this account!!! Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/#findComment-344445 Share on other sites More sharing options...
BlueSkyIS Posted September 8, 2007 Share Posted September 8, 2007 if you need something on 400 pages, use an include(); on each page. Quote Link to comment https://forums.phpfreaks.com/topic/68500-cancellation-automation/#findComment-344456 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.