What I am trying to do is pass a multi dimensional array to another page inside an html image tag. I am trying to use the serialize function to do this but it doesn't seem to be working.
Example:
<--mypage.php -->
<?php
display_html_header();
$a=array(
array("JAN 15, 2000","FEB 23, 2000","MAR 2000","APR 2000","MAY 2000","JUN 2000"),
array(2,3,4,5,6,7),
array(3,4,5,6,7,8));
$serial=serialize($a);
echo "<h1>Testing Graphing Functions</h1>";
printf ("<img src=\"http://www.mysite.com/lib/graph.php?serial=%s&title=%s\">",$serial);
display_html_footer();
?>
<-- graph.php -->
<?php
$serial=stripslashes($serial);
$serial=unserialize($serial);
include('class.graph1');
get_pie_graph($serial,$title);
...
?>
If I pass the serialized variable to a seperate page and strip slashes and unserialize, I can read all of the values just fine. The problems seem to be in the image tag. Does anyone have any ideas?
FYI: I am trying to use the VH Consultants graphing class to encorporate graphing functionality into my company intranet.