How to pass parameters after login?
Posted: Sat Oct 22, 2011 9:38 am
I am doing a login page using session.I did login.php:
in welcome:
it goes to 'welcome.php' good.And has 'welcome <user>'.I created main.php->include 'login.php' in the right of 'main.php.I know how to use document.getElementById (). style.visibility to hide the table.How to: After logging in Left.php or any php can print out: welcome <user>?And i want a link 'Loguot' near '<user>' as: welcome GiaTuan Loguot
After pressing 'loguot' the table of 'login.php' will appear and the word 'welcome <user> logout' will hide
I tried the code of 'welcome.php' but not.
Code: Select all
session_star ();
session_register ('userid');
$ _SESSION ['Userid] = $ row [username];
header ('welcome.php');
Code: Select all
session_star ();
if (isset ($ _SESSION ['userid'])) echo "welcome". $ _SESSION ['userid']
After pressing 'loguot' the table of 'login.php' will appear and the word 'welcome <user> logout' will hide
I tried the code of 'welcome.php' but not.