first, lets assume that the website has no registration on the homepage cause im planning that when the admin can log on directly to the system then she is directed to her page and she can only register her employees. so that means no registration in the homepage and in the admins page, there is registration. so for example, the admin logs on to the system and registers a new employee to the system, she will be the one to decide what username and password she will create and will manually give the username and password to her employee. so, lets assume again that the new employee is registered to the system now and will be able to log on to the system.
new employee account
naturally i will be using php scripts right? so here the problem goes.
we all know that before we can create a text field and buttons there must be a form tag right? and in the form tag, there is the action attribute where the page goes once the login button is selected.
so if i use php then it must be:
<?php if $_post['username'] == admin and $_post['password'] == admin1 action = adminspage.html else if $_post['username'] == aand $_post['password'] == b action = employee.html else (this is where the invalid username and password goes...) ?>
i am willing to learn and i know this code must be a bit confusing but i tried my best to learn. any help will be appreciated... thanks />
This post has been edited by JackOfAllTrades: 11 April 2013 - 04:13 AM
Reason for edit:: USE CODE TAGS!!!