Best to use built-in features. But you can also use the network switch.

if ($network == blah) give blahs password
elseif ($network == otherone) give the other ones password