Jump to content

Help needed on My Account page after successful login


mendi

Recommended Posts

Hi,

 

I am very beginner to php html programming, I have a website where after successful login, i am showing the My Account page but i don not know how to show Welcome username in the html, 

 

User logins with Username and password after that I want My account page is opened (using header) and it show the username on the page and he or she could products in the card and checkout.

 

Could some one help with some code or where can i refer some sample code.

 

Thanks

If you are storing the username in a session after a successful login 

 

On our account page add

echo'Welcome';
if (isset($_SESSION['username'])){
  echo", {$_SESSION['username']}";
}

changing username to whatever you are storing username as.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.