im a bit of a php n00b. I have this login script that works fine just trying ot add a session variable to get the data from the field usertype (this will be set as admin or user)

ive tried the code below but getting parser errors the parts i have added that are not functioning are

$usertype = $_POST['usertype'];

$_SESSION['valid_type'] = get($usertype, "admin");

Just want to know...