serialized arrays
| From: | Donaldson Sgt Michael J | Date: | Fri, 10 Oct 2003 13:41:13 +0000 |
| Subject: | serialized arrays | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165741@lists.php.net to get a copy of this message | ||
$s_array1 = serialize($results);
echo "<img src= \"gd_graph.php?h_array=urlencode($s_array1) \" >";
What's the problem with this code? I am trying to pass an array to create
graph but instead of the pic i get this in my browser. Probably do to bad
HTML syntax. Can I urlencode in a get or does it have to be a hidden
variable in a post?
<img src=
"gd_graph.php?h_array=urlencode(a:2:{s:7:"PROGRAM";a:2:{i:0;s:6:"LBIVII";i:1
;s:9:"web_count";}s:3:"NUM";a:2:{i:0;s:2:"69";i:1;s:2:"91";}})
" >