> I was afraid that was the case. 

You've nothing to fear but fear itself.  Sessions are your friend.

Edward Dudlik
"Those who say it cannot be done
should not interrupt the person doing it."

wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU



----- Original Message ----- 
From: "Al" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, 15 October, 2003 14:15
Subject: Re: [PHP] Newbie question about Class


I was afraid that was the case. 

Tom Rogers wrote:

>Hi,
>
>Thursday, October 16, 2003, 3:35:56 AM, you wrote:
>A> My question seems fundamental.  I want to set a variable in one function 
>A> in a class and then want to use the value in a second function.  
>A> However, the functions are called a html page with two passes.  Submit 
>A> reloads the page and an if(...) calls the second function in the class.
>
>A> If I declare on the first run:
>A>     $get_data = new edit_tag_file();
>A>     $edit_args= $get_data-> edit_prep();
>
>A> The on the second pass, I'm stuck.  I can't declare a new instance of 
>A> "edit_tag_data".
>A> And, it appears the object is gone after I leave the page. 
>
>A> Will the class structure do this for me or must I save the values in 
>A> $GLOBAL or something?
>
>A> Thanks....
>
>
>You need to pass the values to the next page or save them in a session
>
>  
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to