#
$departments = array("access"=>"Access Services",
#
"advancement"=>"Advancement",
#
"archives"=>"Archives",
#
"closet"=>"Supply Closet",
#
"digital"=>"Digital Library Management",
#
"dmds"=>"DMDS",
#
"metadata"=>"Metadata Management",
#
"office"=>"Office of the Dean",
#
"research"=>"Research & Instruction",
#
"resourcem"=>"Resource Management",
#
"resource"=>"Resource Sharing",
#
"scholarly"=>"Scholarly Resources",
#
"systems"=>"Systems" ,
#
"others"=>"Other");
#
$to = array("access"=>"d.kennedy@edu",
#
"advancement"=>"m.carpenter@.edu
#
"archives"=>"j.krizack@edu",
#
"closet"=>"e.bren@edu",
#
"digital"=>"p.yott@edu",
#
"research"=>"j.dendy@edu",
#
"resourcem"=>"j.morrow@edu",
#
"resource"=>"br.greene@edu",
#
"scholarly"=>"a.aaron@edu",
#
"systems"=>"r.krol@edu",//r.krol
#
"others"=>"sharma.me@edu");
#
#
#
now after checkbox is verified it sends to head of the department means the e-mail ids listed so how do I write them in if condition.
again in if condition how to see whether it goes to that particular head and if not then it should go to both the person who entered his e-mail id and to the head(e-mail ids listed above).