Newbie question about Class

From: Date: Wed, 15 Oct 2003 17:35:56 +0000
Subject: Newbie question about Class
Groups: php.general 
Request: Send a blank email to php-general+get-166230@lists.php.net to get a copy of this message
My question seems fundamental. I want to set a variable in one function in a class and then want to use the value in a second function. However, the functions are called a html page with two passes. Submit reloads the page and an if(...) calls the second function in the class. If I declare on the first run: $get_data = new edit_tag_file(); $edit_args= $get_data-> edit_prep(); The on the second pass, I'm stuck. I can't declare a new instance of "edit_tag_data". And, it appears the object is gone after I leave the page. Will the class structure do this for me or must I save the values in $GLOBAL or something? Thanks....

« previous php.general (#166230) next »