17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1027 Views |
-
Form Error - Trying to get property of non-object

18 June 2008 at 11:36am
Just trying to code up a form that returns a users details from the database. Keep getting the following error when trying to run the linked code:
Trying to get property of non-object in /Applications/MAMP/localhost/silverstripe/mysite/code/UserInfoPage.php on line 33
Code
http://pastebin.com/m249278aPointers greatly appreciated!
-
Re: Form Error - Trying to get property of non-object

18 June 2008 at 6:25pm
I dont think that will work. If Im correct you have a email field and on submit you want to get the users details? $this->Form-Email wont work but you could try
function GetUserDetails($data, $form) {
$email = $data['Email'];
// do crazy stuff
return;
}
| 1027 Views | ||
|
Page:
1
|
Go to Top |


