[php3] passing array of objects from form

From: Date: Sat, 23 Sep 2000 03:37:38 +0000
Subject: [php3] passing array of objects from form
Groups: php.general 
Request: Send a blank email to php-general+get-17462@lists.php.net to get a copy of this message
The user fills out an html form, and the data entered is used to create a new instance of a charge object. The user can go through the form several times in a row, to fill in data for several charges, which will then be totalled up at the end. Each time the user "submits" the form, I stick all data that needs to be retained into a "hidden" html input. I am sticking the charge objects into an array, as they get created, and I'm trying to pass this array along as a hidden input. I have read that I need to serialize() and urlencode() objects and arrays in order to pass them in this fashion. I do this, but then when the data is urldecode()d and unserialize()d at the next iteration of the script, the charge objects that come out are apparently not charge objects anymore. I can't access their variables, and can't call their functions. Should I be able to do this? Or is there a better way? Or is what I want simply not possible? Would really appreciate any feedback. Thanks! ===== ------------------------- Lucy Elaine Perry lep@pobox.com ------------------------- __________________________________________________ Do You Yahoo!? Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/

« previous php.general (#17462) next »