![]()
on a site im doing, I'm building a login script, its working fine however i have included it into a mini table under the navigation, the problem i having is I use the switch function to load the pages in the main area of the page and it works perfectly for all other links but not this one
when the user is logged in, this is echo'ed
and the code in the switch function isCode:echo "<a href='index.php?id=My Account'>My Account</a><br>";
the variable $session->username is what returns the users name so say I was logged in, my username is Shadows, it would look like thisCode:case "My Account": include ('userinfo.php?user=$session->username');
however, this is not workingCode:userinfo.php?user=Shadows
any idea's on how I can get $session->username to return the logged in name onto the end of the link userinfo.php?user=Code:Warning: main(userinfo.php?user=$session->username): failed to open stream: No such file or directory in /home/shadows/public_html/1.0/index.php on line 129
![]()




Reply With Quote