note 110094 deleted from language.oop5.serialization by googleguy

From: Date: Tue, 18 Sep 2012 20:05:17 +0000
Subject: note 110094 deleted from language.oop5.serialization by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190872@lists.php.net to get a copy of this message
Note Submitter: admin at tyconpowered dot com ---- I found that passing a serialized object as a $_POST variable requires that it is URL encoded first: <?php ///PAGE 1 $csv = new parseCSV(); ?> <input type="hidden" name="myobject" value=" <?php urlencode(serialize($csv)); ?>"/> <?php ///PAGE 2 $csv = unserialize(urldecode($_POST['myobject'])); ?>

« previous php.notes (#190872) next »