i'm using the validated field to hide unvalidated records from all but admin. the following code is used to change validated field if a user modifies the record:
(!$per_admin) and ($in{$db_validated_field} = "No");
instead of hard-coding the value to No, i would like to set the default in the cfg file and pull that default value from cfg file when record is modified. that would enable me to use the same db.cgi for multiple databases; some of them need records re-validated while others don't.
i tried the following but it doesn't work:[/quote]
$in{$db_validated_field} = $db_defaults{$db_validated_field};
[/code]
it's probably a simple syntax thing, but i can't figure it out!
Code:
(!$per_admin) and ($in{$db_validated_field} = "No");
instead of hard-coding the value to No, i would like to set the default in the cfg file and pull that default value from cfg file when record is modified. that would enable me to use the same db.cgi for multiple databases; some of them need records re-validated while others don't.
i tried the following but it doesn't work:[/quote]
$in{$db_validated_field} = $db_defaults{$db_validated_field};
[/code]
it's probably a simple syntax thing, but i can't figure it out!

