Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6970339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:41:52+00:00 2026-05-27T16:41:52+00:00

I have a multi page form that I am trying to implement on my

  • 0

I have a multi page form that I am trying to implement on my website which works like so:

1 Enter details of customer — $_POST –> 2 Confirm Customer Details –$_SESSION–> 3 Generate PDF from Customer Details

As you can see on my second page I get the values in my form from $_POST. On that same page I create an object called “customer” from my class called customer which stores all the values POSTed from my first page.

I then set a $_SESSION variable called “customer” and assign it to my object.

session_start();  

        //includes html header part of page
        include("includes/page/header.php");



        //customer class 
        include("classes.php");


        $customer = new customer();


        $_SESSION['customer'] = $customer;

Now on my final page of my site I have the following code:

    session_start();

//assign customer to equal object stored in session
$customer = $_SESSION['customer'];


//to test if successfull , nothing is displayed!
echo $customer->first_name;


return 0;

Testing this nothing is displayed on my page, so my session is not doing what I thought it would do.

FYI:

  • My class customer is fine and works properly and stores all values correctly!
  • My post array is working fine

var_dump of session on final page.

object(__PHP_Incomplete_Class)#1 (15) { ["__PHP_Incomplete_Class_Name"]=> string(8) "customer" ["first_name"]=> string(5) "Iain" ["second_name"]=> string(6) "Taylor" ["company_name"]=> string(10) "Wired Ltd." ["address_1"]=> string(15) "14 Joseph St" ["address_2"]=> string(8) "West End" ["city"]=> string(7) "Glasgow" ["postcode"]=> string(7) "G45 NP4" ["county"]=> string(29) "Scotland" ["country"]=> string(14) "United Kingdom" ["email"]=> string(31) "somebody@somebody.com" ["phone"]=> NULL ["cid"]=> NULL ["reg_date"]=> NULL ["tel"]=> string(11) "01413395678" } 

Any ideas how to get this to work ?

Thanks

Merry Christmas!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T16:41:52+00:00Added an answer on May 27, 2026 at 4:41 pm

    You need to do include("classes.php"); on your final page, before session_start(), because, when deserializing session variables, PHP tries to instantiate object of the same class that you`ve put in session data. So, if PHP cannot find the class, it raises an error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a multi-page form, and I'm trying to implement Back buttons, so that
I am currently trying to create a multi-page form that uses both jQuery and
I have a multi-page form. I'd like to have a prev and next button
I have created a multi-page registration form for a website. Due to the page
I have a multi-lingual page where I want to display form validation error in
I have a multi-step form and user can navigate to any page to modify
I have a multi language website which requires both English language and Azeri characters
I have a multi-page PDF file that has information I need to parse. The
I have successfully implemented a multi-language website in which user can change language by
Im trying to add a multi page form, in php with zend framework, where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.