Passing arrays to other php routines in popup window
| From: | Gavin | Date: | Sat, 15 Sep 2001 02:34:36 +0000 |
| Subject: | Passing arrays to other php routines in popup window | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67423@lists.php.net to get a copy of this message | ||
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