I have an array $journal that I want to carry from a page (where it was
created) to another page (a popup that shows the variables contents). Is
this automatically available? or do I have to do something special to php??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Thu, Dec 08, 2005 at 01:33:52AM -0500, Eternity Records Webmaster wrote:
I have an array $journal that I want to carry from a page (where it was
created) to another page (a popup that shows the variables contents). Is
this automatically available? or do I have to do something special to
Session variable or hidden field maybe
Eternity Records Webmaster wrote:
I have an array $journal that I want to carry from a page (where it was
created) to another page (a popup that shows the variables contents). Is
this automatically available? or do I have to do something special to php??
you could just pass in in the address, eg:
www.example.com?var1=$var1var2=$var2
to get them use $_REQUEST['var1']
to pass an array you could use serialize($var1) and unserialize($var1)
On 12/8/05, Chris Shiflett [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
?php
$array = array('my',
Curt Zirzow wrote:
?php
$array = array('my', 'list', 'of', 'stuff');
$_SESSION['array_for_popup'] = $array;
?
And in the code that is called in the popup:
?php
if(!isset($_SESSION['array_for_popup']) {
die('you should not be here anyway, only on a popup is this allowed');
}
$array =
On Thu, Dec 08, 2005 at 02:39:46AM -0500, Zack Bloom wrote:
you could just pass in in the address, eg:
www.example.com?var1=$var1var2=$var2
to get them use $_REQUEST['var1']
to pass an array you could use serialize($var1) and unserialize($var1)
Or just use http_build_query() (php5 only)
6 matches
Mail list logo