Problem Login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Huynh
Forum Newbie
Posts: 10
Joined: Sat Oct 08, 2011 1:51 am

Problem Login

Post by Huynh »

Can you help me make a log frame as www.yahoo.com or forums ?
Generally above the forum will have two text field (account, password) and a Login button.After entering your account information, click Login, the text field, button Login disappeared.Instead will appear as follows: username Logout.I will use can include
Zephni
Forum Newbie
Posts: 8
Joined: Fri Oct 07, 2011 1:59 pm

Re: Problem Login

Post by Zephni »

Have you looked into using cookies to log someone in for a certain amount of time? How familiar are you with HTML / PHP? what do you know/have already?
Huynh
Forum Newbie
Posts: 10
Joined: Sat Oct 08, 2011 1:51 am

Re: Problem Login

Post by Huynh »

Yes, I know how to use the session to sign someone.And I have made login page.You can see the top of this forum:FAQ Members Login .After your successful login it will be: FAQ Members Logout [Huynh]
I will present frame:FAQ Members Logout [Huynh] using include.
If members have signed the VIP level,I will add some services to VIP members.
If someone is logged in admin level,vertical list on the left will be adding links as:editing of product information,member information.
Zephni
Forum Newbie
Posts: 8
Joined: Fri Oct 07, 2011 1:59 pm

Re: Problem Login

Post by Zephni »

If you are using a database, pull in the level of privaliges that the user has, and then wrap an if statment around the HTML you want to display:

Code: Select all

<?php
if($row_user['admin']){
    ?>
         [YOUR HTML FOR ADMIN USER]
    <?php
}
?>
Am I on the right line for what your trying to achieve?
Huynh
Forum Newbie
Posts: 10
Joined: Sat Oct 08, 2011 1:51 am

Re: Problem Login

Post by Huynh »

Issues show, hide, I can use the expanded list of Giatuan.So use include, iframe.I need to change the code for the login, logout?
I sometimes get errors when using session for login.I checked all the correct syntax :?
Post Reply