Reply
 
Thread Tools
Old 12-01-2004, 01:46 AM   #1   [permalink]
Dastafarin
Forum Master
 
Dastafarin's Avatar
 
Join Date: 7 Feb 2001
Location: my little sanctuary
Posts: 3,752
Send a message via ICQ to Dastafarin Send a message via AIM to Dastafarin Send a message via Yahoo to Dastafarin
PHP, Objects, and calling Serialized Cookies

Ok, I have been working through this new PHP book, and have finished the OOP section, problem is, one of the scripts didn't work correctly. I have checked the book's site, looked at the forum, downloaded the script, but nothing fixes the problem.

Problem:

The script is very simple, it creates a page using an Object, Constructors and a template. When you first load the page, you are given the basic page, with a form in the middle allowing you to select the page title, background color, text color, and table width. It then sends that information via POST to itself, sets all the Parameters, then stores all the information into a serialized cookie. The cookie stores fine, has all the information. And, when you go to the page right after hitting submit, it shows it how it should look. Problem is, when you try to visit again, and load the site off the cookie, it doesn't work. Instead, it gives me this:

Quote:
Fatal err