Create profile

New profile created

"; echo "

Edit profile for $username

"; } else { if($_GET["Submit"]=="Create") echo "

ERROR! Please select the faculty

"; ?>

Username:

Select faculty

This profile already exists

"; echo "

Edit $username

"; } } else { ?>

Search and add an AD username

First name Last name

0) { for ($i=0; $i<$entries["count"]; $i++) { echo "

Name: ".$entries[$i]["displayname"][0]."
"; $uname=$entries[$i]["cn"][0]; echo "Username: ".$uname."
"; echo "Title: ".$entries[$i]["title"][0]."
"; echo "Email: ".$entries[$i]["mail"][0]."

"; } } else { echo "

No results found!

"; } ldap_unbind($ad); } ?>