simple login control

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
johnjalani
Forum Newbie
Posts: 6
Joined: Tue Apr 01, 2008 5:45 am

simple login control

Post by johnjalani »

please help me, iam a student, our prof. is not actually good in teaching PHP to us, that's why we always end up in forums like this for help,

i need to make a simple login control using a fixed (single) user account, i guess its better to used If statements, but how?

so this is the idea, if the admin would like to open the control panel (control.php) of his site, he must login (login.php) before he would enter,so using a fixed account (user: admin pass: sa) in PHP if statement, how would i do that, i mean please give me a sample code,

to anyone that will help me, thanks for the help.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: simple login control

Post by Christopher »

Search these forums or the web for "authentication".
(#10850)
Post Reply