I'd suggest the following to get the values in and out.
$goes_in = urlencode(base64_encode(serialize($_POST)));
$comes_out = unserialize(base64_decode(urldecode($goes_in)));
John Halladay
www.greenaspen.com
On 2/10/2012 3:00 PM, Merrill Oveson wrote:
> Uphpers:
>
> Sometimes I run in situations like this. It drives me crazy! Is
> there an easy fix?
>
> Code:
>
> $serializePOST = serialize($_POST);
> print "<td><a href=\"customer_information.php?id=" . $customerId .
> "&postArray=" . $serializePOST . "\">View</a></td>";
>
> Now when I look in firebug what I get is scrambled.
>
> <a
> fname";s:0:"";s:5:"email";s:0:"";s:6:"serial";s:0:"";s:7:"sponsor";s:0:"";s:14:"expirationdate";s:0:"";s:5:"lname";s:6:"oveson";s:7:"company";s:0:"";s:11:"licensecode";s:0:"";s:12:"hardwarelock";s:0:"";s:12:"softwarename";s:0:"";}"=""
> href="customer_information.php?id=6520&postArray=a:10:{s:5:">View</a>
>
> Why doesn't the all the serialized info go after the $postArray variable?
> Why the scramble?
>
> And how to fix.
>
> Thanks
>
> Merrill
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net