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.
simple login control
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US