if ($service="new code"){newcode();}
elseif ($service="delte code"){deletecode();}
Check this both the lines you are not comparing you assigned the value which returns true.
modified code.
if ($service=="new code"){newcode();}
elseif ($service=="delte code"){deletecode();}