Hi Al

Sessions and objects are quite easy to use in the latest version of PHP, and
would be my personal recommendation. I have a coupleof test scripts that I
regularly
"mangle" when trying to see if something is doable...if you like, you can
contact me offlist and I will mail these to you and you can try it out for
yourself.

Regards

Rory McKinley
Nebula Solutions
+27 82 857 2391
[EMAIL PROTECTED]
"There are 10 kinds of people in this world,
those who understand binary and those who don't" (Unknown)
----- Original Message ----- 
From: "Al" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 8:15 PM
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