Username display after logging

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 3
Joined: Tue Nov 20, 2012 10:59 pm

Username display after logging

Postby simbu » Thu Nov 22, 2012 3:54 am


I want to display the username after the user logging.

Here is the code part which i used but i am getting error like undefined index : name


HELLO <?php echo $s_name; ?>

php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Username display after logging

Postby seandisanti » Fri Nov 23, 2012 2:25 pm

Session variables are cool, but they're not magic, you still have to put a value in to get one out. here's a short video on working with sessions. ... e-security

Return to “PHP coding => General”

Who is online

Users browsing this forum: Google [Bot] and 9 guests