Re: Header() variables

From: Date: Thu, 10 Apr 2003 09:24:27 +0000
Subject: Re: Header() variables
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-143290@lists.php.net to get a copy of this message
Thx alot, now I've fixed the problem: header("Location: target_file.php?myVar=".serialize($myVar)); In target_file I use $myVar=unserialize($myVar) to regain my variable. It works now. Again, thank you very much for your help. Alex ----- Original Message ----- From: "Erwin Kerk" <erwin@scoutingnederland.nl> To: "Alex Ciurea" <alex@netonwave.com> Sent: Thursday, April 10, 2003 12:13 PM Subject: Re: [PHP] Header() variables > Try the serialize() and unserialize() functions > > Erwin > > > > Alex Ciurea wrote: > > Hello, > > > > I try to send some variables using the header() function. > > > > My code is: > > > > header("Location: target_file.php?myVar=".$myVar); > > > > It works fine with all types of variables, but not with arrays. > > > > If $myVar is an array, the header function will transmit the value "Array". > > Probably it's normal but is there any way to transmit an array using this > > function ?? > > > > Thanks alot > > Alex > > > > > > > > > > > > > >

« previous php.general (#143290) next »