This topic is locked
[SOLVED]

 How to show login information in header

11/29/2013 03:11:57
PHPRunner General questions
T
Tayyab Ilyas author

Hi,
I have a website and i kept same header on application using header/footer, now when i login to my application shows user information/login as after my header, is there a ways i can show user information in header of my website/application.
Regards

Sergey Kornilov admin 11/30/2013

Header file is a regular PHP file so you can use something like this there:

<?php

echo "Logged as: ".$_SESSION["UserID"];

?>
T
Tayyab Ilyas author 11/30/2013

Thanks, and can we have logout, change password, etc links/buttons in header as well?

Regards

Sergey Kornilov admin 11/30/2013

Yes, you can. See how each of those links and buttons look in generated HTML code and copy/paste this HTML to the header file.