jonathan14 Posted December 6, 2006 Share Posted December 6, 2006 HelloIm a PHP newbie and I have a question about using objects.My scenario is this:1. I have 3 PHP pages and on the first page I want to collect some data from the user and store it on the session2. On the next 2 pages I want to add more data to the session and then retrieve all the data and send an email after submitting the last pageI was thinking about creating an object to store all my data on the first page and put it on the session for the other pages to get at it rather than sending data over in the request each time - and put/get to/from session each time I want to update propertys in it.Can anyone telll me if this sounds possible in PHP 4.4.4? I know this version of PHP is limited in its OO features but I would ideally like to work with objects since this it what I know.ThanksJon Link to comment https://forums.phpfreaks.com/topic/29689-objects-in-php-444/ Share on other sites More sharing options...
trq Posted December 6, 2006 Share Posted December 6, 2006 Yeah its possible, I don't really see much point though. Link to comment https://forums.phpfreaks.com/topic/29689-objects-in-php-444/#findComment-136273 Share on other sites More sharing options...
jonathan14 Posted December 6, 2006 Author Share Posted December 6, 2006 Thanks for the reply. How would you do it if you dont see much point. If this sounds sarcastic it isnt meant to be - Im really appreciative of any help!Its just that Im collecting quite a lot of data and I just thought putting it all in 1 object would simplify persisting it.Any recommendations for best persisting a large number of variables betwwen page requests would be good.ThanksJon Link to comment https://forums.phpfreaks.com/topic/29689-objects-in-php-444/#findComment-136276 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.