[SOLVED] My username function won't work (newb needing help
Posted: Sat Aug 14, 2004 10:26 am
i've setup a user system, but i have a page called portal.php. I can't get the $user var from login.php to appear onto the portal page (i'm a newb
). Maybe i could make a function like setUser($user), which i've tried (but i'm not good with functions). I made the function like this:
on my 'process_login.php' page i had setUsername($user);
i set the function up like this:
and to try to echo the username on the portal page i put setUsername()
but it didn't work, and i got this error:
Fatal error: Call to undefined function: setusername() in *hidden*\portal.php on line 25
can somebody help me with this ?
on my 'process_login.php' page i had setUsername($user);
i set the function up like this:
Code: Select all
function setUsername($x) {
$showuser = $x;
return $showuser;
}but it didn't work, and i got this error:
Fatal error: Call to undefined function: setusername() in *hidden*\portal.php on line 25
can somebody help me with this ?