|
I've read your useredit.php, it posts to process.php, with subedit =1.
However, isset($_POST['subedit']) does not check for the value in it. It evaluates whether it exists. I Think you should add an && $_POST['subedit'] == 1 to that line.
Then $session->editAccount is called (please be aware of query insertion here), but you never make sute, ie check if $session is set. If it is set (I assume by not it is), you forward the call again to the session, which forwards it to the $database... that one is global again ,so we have to assume it is set...
I think you should add some debugging steps in all functions to determine whether all classes are created correctly and all functions are called as espected. At my doh's box it does not run at all, but that it probably because globals are blocked. Can't you abandom them?
@William_Wilson: He attached a file with all his code. It's quite a lot to debug.
This post has been edited by Hary: 1 Oct, 2008 - 10:59 AM
|