I'm having a problem passing the value to a field that is dependent on another. In db.cgi in the sub add_record, I added after
unless ($per_admin) {
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
############################ The following:
if ($in{'Your_Rank'} eq ('Shodan' | | 'Nidan' | | 'Sandan' | | 'Yondan' | | 'Godan'))
{
$in{'Yudansha'} = 'Yes';
}
else {
$in{'Yudansha'} = 'No';
}
}
######################
same for the modify_record. I always get a result of 'No'. I dbl checked field names and the spelling of values. Am I missing something obvious? Thanks.
-Brian
unless ($per_admin) {
($auth_user_field >= 0) and ($in{$db_cols[$auth_user_field]} = $db_userid);
############################ The following:
if ($in{'Your_Rank'} eq ('Shodan' | | 'Nidan' | | 'Sandan' | | 'Yondan' | | 'Godan'))
{
$in{'Yudansha'} = 'Yes';
}
else {
$in{'Yudansha'} = 'No';
}
}
######################
same for the modify_record. I always get a result of 'No'. I dbl checked field names and the spelling of values. Am I missing something obvious? Thanks.
-Brian