I'm afraid in the interest of brevity I have failed to give a good explanaiton of my problem. As I said I am trying to learn OOP, I decided to convert a working procedural PHP script to OOP style. It uses Pear QuickForm to dispaly a form and then put the results of filling out the form in MySql database.It is mostly working except nothing was going to the database. I determined that the form was displayed correctly but I was not capturing the results of filling out the form.
I wrote one class, displayForm() to dispaly the form and capture the results and another class, saveForm() to update the database. I am talking about problems with the displayForm() class. I have a method in it that must return a QuickForm object and the results of filling out the form. I know you can't use return $a, $b; so I tried an array but could not get it to work. I don't know if this is beacuse you can't pass a QuickForm object in an array or if I just coded it wrong.
I decided to try solving the problem by using Method A to return the QuickForm object and having Method B get the form data from MethodA and then return it to my script. That is why I asked if it was possible to get the contents of a variable in one method and pass it to another method in the same class without using return in the first class.
I hope my problem is now clearer and apologize if I have wasted everyone's time with my earlier posts.
Regards, Cleanman/2