]
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
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
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
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
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
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 =
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
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
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);
, 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
10 matches
Mail list logo