variables - Access PHP Object from a loaded PHP in POST request



You can store it in the$_SESSION and access it on the other pages.

On each page that you will use it you have to include the class.

So on both main.php and other.php:

require 'thisClass.php';

On main.php

$_SESSION['obj'] = $obj;

And on other.php

$obj = $_SESSION['obj'];

and you can use the object.

People are also looking for solutions to the problem: php - JavaBridge BIRT Send Email


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.