Hi fxpepper,
I think you misunderstood laserlight`s solution. He was telling this,
class foo
{
private $formdata;
function generateForm()
{
$this->formdata = 'This is the form data';
echo $this->formdata;
}
}
function displayAdditionalData($obj)
{
$obj->generateForm();
echo "<br />information";
}
$fooObj = new foo();
displayAdditionalData($fooObj);
The problem with your question is you never explain us what you need to do.
Well i have a class that creates a form. I need to add a function that prints/echoes out information as the originally class doesn't do this. But I do need the information from this original class.
What kind of information you need?
If you provide us with more information we can surely help you out.
Thanks,
best regards,
Niroshan