RE: [PHP] passing objects across pages

From: Date: Thu, 27 Jul 2000 10:11:19 +0000
Subject: RE: [PHP] passing objects across pages
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-8420@lists.php.net to get a copy of this message
Take a look at the serialization functions in PHPLIB http://phplib.netuse.de/ John -----Original Message----- From: luis@note.amherst.edu [mailto:luis@note.amherst.edu] Sent: Wednesday, July 26, 2000 5:35 PM To: php-general@lists.php.net Subject: [PHP] passing objects across pages Although I am not new to PHP, I am new at approaching PHP from an OO approach. I was wondering whether PHP can handle the passing of objects across pages. Lets take an example. On a page I take in input about an account the user wants created, and once the user submits, I take that information and build a UserAccount object. On the next page I would take this object, and pull out many of the fields and display them to the user so that he/she may verify the information he/she entered is correct. If it is, the user presses submit, and I take that object and add the information inside it into a database. If the user presses back, the input page takes the values that the object currently has an pre-populates the fields. I would know how to do everything in this example except for passing the object from page to page. In jsp, for example, you can set objects into request, and pull them out on the next page, then repeat the process for wherever you go. Thanks for the help, Luis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#8420) next »