Sorry if the title is leading.. I'm looking for advice for the following system I am implementing:
The system is to provide quotes for customers, this is then exported to PDF and emailed to the customer. Basically, the "quote" consists of the following:
- Font cover (Images - Pulled from a database)
- Attributes - (This is the actual quote)
- Header image - (Product images - Pulled from the database)
- Customers information (Customers details for the quote)
- T&C
I have made classes for each and declared an object. Which is then passed to the final object Quote
but the problem is this:
I'm using PHP and the UI works so that each of these sections is a page. So, page 1 = front cover
, Attributes = page 2
etc.. The final page, is where the Quote
object is created and stored within the database. But, at each of the sections, the user has the ability to view the details up to this point.
I have been using sessions for this, but, now, I have 5 sessions and all of these form 1 object (which is stored as a session) - Is there a more practical way to do this? And if there is, how would I transfer the previous information to the next section?
Any advice, greatly appreciated.