Two things.
First, use eq instead of =. Second, for all the "middle" options, use elsif instead of else.
$rec{'Tel'} = "375 6230";
$rec{'Fax'} = "375 6450";
$rec{'Email'} = "joe\@server.com";
}
elsif ($db_userid eq "george") {
$rec{'Tel') = "899-0128";
$rec{'Fax'} = "899-0151";
$rec{'Email'} = "george\@server.com";
}
else {
&html_add_failure
}
(I forget the eq thing all the time! )
------------------
JPD
First, use eq instead of =. Second, for all the "middle" options, use elsif instead of else.
Code:
if ($db_userid eq "joe") { $rec{'Tel'} = "375 6230";
$rec{'Fax'} = "375 6450";
$rec{'Email'} = "joe\@server.com";
}
elsif ($db_userid eq "george") {
$rec{'Tel') = "899-0128";
$rec{'Fax'} = "899-0151";
$rec{'Email'} = "george\@server.com";
}
else {
&html_add_failure
}
(I forget the eq thing all the time! )
------------------
JPD