I was working on a script before taking ill. I need urgent help with this.
I have login form, and I can use http://phpeasystep.com login tutorial to do a single user login. But I need it for like 4 different users redirecting to diffrent pages after login/
The form code:
<form action="checklogin.php" method="POST" name="logForm">
<fieldset>
<legend>Please Login Here!</legend>
<label for="name">Username:</label>
<input type="text" name="username" id="username" />
<br /> <br /> <br />
<label for="password">Password:</label>
<input type="password" name="password" id="password" />
<br /> <br /> <br />
<label for="address">User Type:</label>
<select name="subtype" id="subtype">
<option value="" selected="selected">Select Type..</option>
<option value="1">User1</option>
<option value="Nurse">User2</option>
<option value="Accountant">User3</option>
<option value="Lab Tech">User4</option>
</select>
<br /> <br /> <br />
<label for="submit"> </label>
<input type="image" name="submit" src="images/login_button.png" />
</fieldset>
</form>
I have a database with, username, password and subtype