Re: Passing arrays to other php routines in popup window

From: Date: Sat, 22 Sep 2001 01:48:03 +0000
Subject: Re: Passing arrays to other php routines in popup window
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68253@lists.php.net to get a copy of this message
Dunno why split is not working, but use explode instead. -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm ----- Original Message ----- From: Gavin <gavin@mcmurdousa.com> Newsgroups: php.general To: <php-general@lists.php.net> Sent: Friday, September 14, 2001 9:34 PM Subject: Passing arrays to other php routines in popup window > I am using Apache with php version 4.0.4pl1. I am trying to display data in > a popup window. I want to pass there variables, one string and two normal > arrays. > Both the $name and $data variables contain valid data in the dispData > routine, however the $data2 array is always blank. > > ************** > $name = urlencode($name); > $data = urlencode(serialize($data)); > $data2 = urlencode(serialize($data2)); > > $return_value .= '<form>'; > $return_value .= '<input type=button > > onClick=window.open("dispData.php?pass='.$title.'-'.$data.'-'.$data2.'") > value="Graph">'; > $return_value .= '</form>'; > ************** > > dispData.php > list ($name, $data, $data2) = split ('[=-]', $pass); > > $name = urldecode($name); > $data = unserialize(urldecode($data)); > $data2 = unserialize(urldecode($data2)); > > Any ideas? > Thanks > >

« previous php.general (#68253) next »