I have my back ground in VC# is desktop application development.

In VC#

if(user.Text == "admin")
{
	form f = new AdminForm();
	f.show();
}
else if(user.Text == "Facaluty")
{
	form f = new FacForm();
	f->show();
}

on different user level i can open differnt form according to their level, each form have differnet look and feel, and differnet content on them.


Current i am developing a web, familar with PHP basics.
What i want suppose
there are three element on the web page
1. user name feild
2. user filed password
3. drop down list having option i)Adimn, ii)Faculty, iii)Student
and a Login button.

i want to open different pages on differnt dropdown list options for examples
if user select admin from drop down list and press Login button then admin.php page should be open, and if user select student from the list then press the Login Button then Students.php page should be open.

How to do that, need guide lines. I want to learn, any tutorial any thing that will help me.

Thanks.

How about this:
login.php

<?php
if($_POST['submit']=="Login")
{
  switch($_POST['t'])
  {
    case 1: header("Location: admin.php"); break;
    case 2: header("Location: faculty.php"); break;
    case 3: header("Location: student.php"); break;
    default: break;
  }
}
?>
<html>
<head>
<title>Login</title>
</head>
<body>
<form action="login.php" method="post">
Username: <input type="text" name="u" /><br/>
Password: <input type="password" name="p" /><br/>
<select name="t">
  <option value="1">Admin</option>
  <option value="2">Faculty</option>
  <option value="3">Student</option>
</select>
<input type="submit" name="submit" value="Login" />
</form>
</body>
</html>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.