Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 17th, 2013, 08:57 AM
Registered User
 
Join Date: Apr 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default passing object to another php page

How can i pass my object created on page to another .
<?php
/**class.php*/
class user{
public function show(){

echo 'hi there';
}
}
$obj=new user();
?>
/**index.php*/
<?php
require_once'class.php';
$obj->show();
?>





Similar Threads
Thread Thread Starter Forum Replies Last Post
passing an object to a view Mordr8d BOOK: Professional ASP.NET MVC 2 8 October 25th, 2010 01:35 PM
passing object to the next page in asp.net madhusrp ASP.NET 1.0 and 1.1 Professional 6 April 4th, 2006 09:28 AM
passing value from Php to PHP page baby PHP How-To 3 March 31st, 2005 02:13 AM
Passing Variables from PHP to PHP brian3166 PHP How-To 4 January 31st, 2005 12:44 AM
passing a php oop object in a form buckarette Pro PHP 2 December 24th, 2003 07:49 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.