Dunno why split is not working, but use explode instead.
--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
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
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]