Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-01-2006, 12:41 AM
New kid on the block
 
Join Date: Dec 2005
Location: Johor
Posts: 4
Rep Power: 0
sheismaria is on a distinguished road
Send a message via Yahoo to sheismaria
session login

bencila la nak buat login session nie...after login tu box login tu ader lagi ,cam ne nak setting ..kami buat slicing n tempat login tu st kepada menu_left.. menu_left tu di includekan pada index.php. faham ker soalan saya nie....sila beri jawapan...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-01-2006, 05:17 PM
heterozigot's Avatar
Novice Webmaster
 
Join Date: Jan 2003
Location: PJ
Posts: 51
Rep Power: 69
heterozigot is on a distinguished road
Send a message via ICQ to heterozigot Send a message via Yahoo to heterozigot
buat buat paham..

lepas dah login tu..check la session dah wujud ke blom
kalo wujud hide lah login box tu, cth:

Code:
if($_SESSION['auth']==1){
echo "Selamat datang". $_SESSION['user'];
}else{
//letak html nye code login box kat sini
}
__________________
Try and Support Malaysia Product.
http://foto.home.net.my
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18-05-2006, 02:20 PM
Novice Webmaster
 
Join Date: May 2006
Location: kulim
Posts: 19
Rep Power: 0
chek-kalem™ is on a distinguished road
cba try
masa nak set session bila auth success

$_SESSION['login'] = 'LoginOk';

pastu nak hilangkan login box bg authenticate users dan welcome diorang

if (!isset($_SESSION['login'])) {

echo " <form method=\"post\" action=\"{$_SERVER['PHP_SELF']}\"

// letak la form punya html kat sini.pastikan escape (\) setiap "

</form> ";

} elseif
(isset($_SESSION['login'])) {

echo "Hello" . $username . "welcome" ;

// $username tu sesuaikan dgn form ko

}

eos
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Login to infomalaya.com infomalaya Websites Review and Suggestion 0 19-08-2006 02:25 PM
login annuR Website Programming 2 18-05-2006 02:32 PM
login php with session boby Website Programming 3 18-08-2005 04:20 PM
Login Session -PHP prob. marco Website Programming 0 01-01-2005 05:49 PM
Cannot login to Malaysian Top 50 alang Mamak Stall 5 04-02-2004 04:33 PM



All times are GMT +8. The time now is 09:13 PM. Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58