Page 1 of 1
Problem Login
Posted: Sat Oct 08, 2011 2:06 am
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
Re: Problem Login
Posted: Sat Oct 08, 2011 2:44 am
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?
Re: Problem Login
Posted: Sun Oct 09, 2011 2:12 am
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.
Re: Problem Login
Posted: Sun Oct 09, 2011 7:23 am
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?
Re: Problem Login
Posted: Sat Oct 15, 2011 1:07 am
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
