3 I have a form I developed on my site but out of joomla structure. on the form, I am trying to call active user data like so:
$user = JFactory::getUser();
echo "<p>Your name is {$user->name}, your email is {$user->email}, and your username is {$user->username}</p>";
but I am getting: Fatal error: Class 'JFactory' not found in /home5/onlinepc/public_html/action/subs/custompcorder.php on line 38
custompcorder.php is the name of the form I created line 38 is $user = JFactory::getUser(); I guest I have to include something on my file?