Re: [PHP] serialized arrays

2003-10-10 Thread Marek Kilimajer
Gregory Kornblum wrote: function URLString2Array($url_string_in) { $ser1 = stripslashes($url_string_in); // $arr1 = urldecode($ser1); urldecoding is done by php. $arr1 = unserialize($arr1); return $arr1; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] serialized arrays

2003-10-10 Thread Brad Pauly
On Fri, 2003-10-10 at 07:41, Donaldson Sgt Michael J wrote: > $s_array1 = serialize($results); > > echo ""; > > 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

RE: [PHP] serialized arrays

2003-10-10 Thread Gregory Kornblum
echo ""; Also here's some functions to help. function Array2URLString($array_in) { $ser = serialize($array_in); $ser = urlencode($ser); return $ser; } function URLString2Array($url_string_in) { $ser1 = stripslashes($url_string_in); $arr1 = urldecode($ser1); $arr1

[PHP] serialized arrays

2003-10-10 Thread Donaldson Sgt Michael J
$s_array1 = serialize($results); echo ""; 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?