It is legal provided:
1) Faculty_Page is a proper instance of a class
2) getFaculty_byName is a valid function within the Faculty_Page instance
3) getFaculty_byName accepts a first argument
4) there exists a GET variable called "name"
if $_GET['name'] is not always present, i'd do this:
if(isset($GET['name'])) {
$Faculty_Page->getFaculty_byName($GET["name"]);
}
else {
// name variable not present.. let's pass in an empty value
$Faculty_Page->getFaculty_byName("");
}
this will prevent PHP warnings from coming up
-sridhar