Jump to content

DIsplaying Login Only If Not Logged In


cameeob2003

Recommended Posts

I was wanting the following to display:

[code]<form name="form1" method="post" action="login/checklogin.php">
                            <div style="position: absolute; top: 191px; left: 253px;">
                            <input style="position: absolute; top: 2px; left: 60px; width: 100px; height= 20px;" name="myusername" type="text" id="myusername">
                            <input style="position: absolute; top: 25px; left: 60px; width: 100px; height= 20px;" name="mypassword" type="text" id="mypassword">
                            <input style="position: absolute; top: 52px; left: 120px; background-image: url(img/login_button.gif); width: 51px; height: 15px; border: 0;" type="submit" name="Submit" value="">[/code]

Only if the user is not logged in. If the user is logged in I want it to show an admin/user panel. I was wondering how I would go about doing this. I dont need the scripting for the admin panel just for the displaying portion.

Any help is appreciated.
Link to comment
https://forums.phpfreaks.com/topic/12511-displaying-login-only-if-not-logged-in/
Share on other sites

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.