ld->userId = $CurrentUserId; $tp->ld->EasyConnect(); $tp->GetForm(); } if ($getP['action'] == 'save') { $tp->ld->userId = $CurrentUserId; $tp->ld->EasyConnect(); $tp->Save($postdata); } } ?>