Hi all,
Here's my question. I have a form that's used to authorize the addition of a new user to the network. The form must be filled out by 1 of 8 branch managers. I'm running into a wall trying to figure out how I would take the name of the person requesting the addition and compare it to a list of names to make sure they have the authority to submit. If their name is not on the list, they get redirected to an error stating so (I have that part done). Would I set the names of the managers into an array and iterate through it by comparing the submitted name to the list? If so, how would I go about doing that? Here's what I have so far...
<?php
$mgrArray = ("Richard","Mary","Mark");
if(isset($approvedBy)){
if(!in_array($approvedBy, $mgrArray)){
echo "You are not authorized to make this request.";
}
}
?>
TIA for any help!