Stuff basically works
My index.php is a structure in which i 'hang' pages.
A page is a php file, which is 'filled' by an instance of the class Page.
A dbo is an instance of a Databaseobject.
A page-instance knows what to show (this->dbo->get_content) and can forward the order to change te content on the page (this->dbo->set_content).
It all works like a charm. When a user clicks the save-button on a page, the current page executes this->dbo->set_content and then this->dbo->get_content and the changed data is shown.
However... I would like to use AJAX.
So now i will have my page-object generate this code:
'update_field' is an ajax function
url = test.php?form=var1&page=var2&field=var3;
How do i get this test.php to recognise the current instance of the page-object? I do not want to make a new instance of the class (or do i?). I cannot give the object to the page as a parameter on the url from the ajax function.
Any shov in the right direction is appreciated.