Re: [PHP] Can Objects be passed to another page?

2003-09-04 Thread Hardik Doshi
] To: [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 3:37 PM Subject: Re: [PHP] Can Objects be passed to another page? Hi there MuToGeN wrote: No, arrays can be passed (input name=array[2], for example), but not objects. And why does this work then? === SCRIPT

[PHP] Can Objects be passed to another page?

2003-09-03 Thread Webmaster
Hi, is it possible to pass an Object to another php page? I want to pass a whole bunch of varibales to another page. For example the session ID, the language that the user choose,etc. All those variables are in one or more objects. Do I have to copy all those object attributes to variables and

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread MuToGeN
Hello Webmaster, No, arrays can be passed (input name=array[2], for example), but not objects. W Hi, W is it possible to pass an Object to another php page? W I want to pass a whole bunch of varibales to another page. W For example the session ID, the language that the user choose,etc. W All

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Jon Haworth
Hi, is it possible to pass an Object to another php page? Have a look into serialization: http://php.net/manual/en/language.oop.serialization.php Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi there MuToGeN wrote: No, arrays can be passed (input name=array[2], for example), but not objects. And why does this work then? === SCRIPT === ?php error_reporting(E_ALL); class AClass { var $i = 0; function AClass ($i = 0) { //$this-display(); } function

Re[2]: [PHP] Can Objects be passed to another page?

2003-09-03 Thread MuToGeN
Hello Marco, I was saying about GET and POST, not sessions MS Hi there MS MuToGeN wrote: No, arrays can be passed (input name=array[2], for example), but not objects. MS And why does this work then? MS === SCRIPT === MS ?php MS error_reporting(E_ALL); MS class AClass { MS var $i =

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
Hi MuToGeN wrote: I was saying about GET and POST, not sessions Could not see that out of your replay... sorry! -- Cheers! Marco MS Hi there MS MuToGeN wrote: No, arrays can be passed (input name=array[2], for example), but not objects. MS And why does this work then? MS

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Radu Manole
using serialize might work - Original Message - From: Marco Schuler [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 3:37 PM Subject: Re: [PHP] Can Objects be passed to another page? Hi there MuToGeN wrote: No, arrays can be passed (input name=array[2

[PHP] RE:[PHP] Can Objects be passed to another page?

2003-09-03 Thread Chris Sherwood
Webmaster. Yes they can, but you must pass the reference to the object and not simply the value per se. ie $newObject = New phpWeb.Class.Sql(); $returnvalue = PerformUserValidation($newObject);

Re: [PHP] Can Objects be passed to another page?

2003-09-03 Thread Marco Schuler
, September 03, 2003 3:37 PM Subject: Re: [PHP] Can Objects be passed to another page? Hi there MuToGeN wrote: No, arrays can be passed (input name=array[2], for example), but not objects. And why does this work then? === SCRIPT === ?php error_reporting(E_ALL