With checkboxes, the easiest (and best, IMNSHO ) way is to make a field in your database for each option.
Oranges => [9, 'alpha', 0, 7, 0, '', ''],
Pears => [10, 'alpha', 0, 5, 0, '', ''],and then set up your checkbox fields:
Apples => 'Apples',
Oranges => 'Oranges',
Pears => 'Pears'
);It may seem like a pain to have all of those fields, but you will be better off in the long run.
Then you will be compromising the security of your database. Let me see if I can explain.
Passwords are saved to the .pass file in encrypted form. There is no way to unencrypt them. If you save them in unencrypted form, anyone who might have access to your files could read them and log in as admin or anyone else. I wrote a mod that would save the passwords unencrypted and it worked. And then a client of mine had someone log in as admin and do a lot of damage to his database. The only way this person could have logged in was to have read the .pass file.
However, if you want to risk it, I'll rewrite the "insecure" mod for you. (There's some things that need to be updated. I've learned a lot since I wrote that mod! )
I'm glad you like the Configurator. It has saved me a lot of time, both in setting up my own databases and in not having to answer questions from other folks.
JPD
http://www.jpdeni.com/dbman/
Code:
Apples => [8, 'alpha', 0, 6, 0, '', ''], Oranges => [9, 'alpha', 0, 7, 0, '', ''],
Pears => [10, 'alpha', 0, 5, 0, '', ''],
Code:
%db_checkbox_fields = ( Apples => 'Apples',
Oranges => 'Oranges',
Pears => 'Pears'
);
Then you will be compromising the security of your database. Let me see if I can explain.
Passwords are saved to the .pass file in encrypted form. There is no way to unencrypt them. If you save them in unencrypted form, anyone who might have access to your files could read them and log in as admin or anyone else. I wrote a mod that would save the passwords unencrypted and it worked. And then a client of mine had someone log in as admin and do a lot of damage to his database. The only way this person could have logged in was to have read the .pass file.
However, if you want to risk it, I'll rewrite the "insecure" mod for you. (There's some things that need to be updated. I've learned a lot since I wrote that mod! )
I'm glad you like the Configurator. It has saved me a lot of time, both in setting up my own databases and in not having to answer questions from other folks.
JPD
http://www.jpdeni.com/dbman/