matthew9090
New Member
- Messages
- 13
- Reaction score
- 0
- Points
- 0
i want to display "welcome (yourname)" when you login. it works fine but i am starting to put html into the perl program but i use a function called getUsername() and i can put the h2 tag on the print welcome bit but the getusername i carn't and it comes up with an internal server error. so there's a big welcome and a small yourname.
here is the script:
if i put the h2 tag at the getUsername() it comes up with an error.
here is the script:
sub RetrieveSession
{
my $sessman = SessMan->new();
if ( ! $sessman->retrieveSession($sid))
{
print "Failed to retrieve existing session: ".$sessman->getError();
exit();
}
print "<h2>Welcome</h2>".$sessman->getUsername();
return(1);
}
if i put the h2 tag at the getUsername() it comes up with an error.