Hi All,
I'm having the most bizzare problem configuring and setting up my data. For some reason, the script just refuses to write three of my fields! I have debug on, and I plainly see that the Form Variables are being passed correctly, as I enter them. But they don't get written to the db file. Instead, I just get a empty field marker "| |"
Here is the configuration from the cfg file:
%db_def = (
Item=>[0, 'numer', 5, 8, 0, '', ''],
PhotoGif=>[1, 'alpha', 10, 25, 0, '',''],
Name=>[2, 'alpha', 25, 50, 1,'', ''],
Catagory=>[3, 'alpha', 0, 25, 1,'', ''],
Color=>[4, 'alpha', 0, 20, 0,'', ''],
Description =>[5, 'alpha', '40x3', 200, 0, '', ''],
Pack=>[6, 'numer', 3, 4, 0, '', ''],
Unit=>[7, 'numer', 3, 4, 0, '', ''],
Case=>[8, 'numer', 3, 4, 0, '', '']
);
Item, Unit, and Case are being written as empty. I wanted Item to be my db key and I could only enter one record because the empty Item field is seen as a duplication when I try to enter a second record. For demonstration purposes, I switched the db key to one of the fields that is being written.
You can see all this in action at:
http://hgi.digihosting.com/cgi/dbman/db.cgi?db=drieds
Sign on as admin/admin and see for yourself. Everything else seems to work perfectly, searches, deletes, etc. Also, the demo database runs perfectly on my server so it doesn't seem to be a problem with db.cgi For the life of me, I just can't see anything wrong with the code on my cfg page.
Please Help! I like this program and would like to implement it at a commercial site, but I'm truly stumped! Thanks very, very, much!
Brad
I'm having the most bizzare problem configuring and setting up my data. For some reason, the script just refuses to write three of my fields! I have debug on, and I plainly see that the Form Variables are being passed correctly, as I enter them. But they don't get written to the db file. Instead, I just get a empty field marker "| |"
Here is the configuration from the cfg file:
%db_def = (
Item=>[0, 'numer', 5, 8, 0, '', ''],
PhotoGif=>[1, 'alpha', 10, 25, 0, '',''],
Name=>[2, 'alpha', 25, 50, 1,'', ''],
Catagory=>[3, 'alpha', 0, 25, 1,'', ''],
Color=>[4, 'alpha', 0, 20, 0,'', ''],
Description =>[5, 'alpha', '40x3', 200, 0, '', ''],
Pack=>[6, 'numer', 3, 4, 0, '', ''],
Unit=>[7, 'numer', 3, 4, 0, '', ''],
Case=>[8, 'numer', 3, 4, 0, '', '']
);
Item, Unit, and Case are being written as empty. I wanted Item to be my db key and I could only enter one record because the empty Item field is seen as a duplication when I try to enter a second record. For demonstration purposes, I switched the db key to one of the fields that is being written.
You can see all this in action at:
http://hgi.digihosting.com/cgi/dbman/db.cgi?db=drieds
Sign on as admin/admin and see for yourself. Everything else seems to work perfectly, searches, deletes, etc. Also, the demo database runs perfectly on my server so it doesn't seem to be a problem with db.cgi For the life of me, I just can't see anything wrong with the code on my cfg page.
Please Help! I like this program and would like to implement it at a commercial site, but I'm truly stumped! Thanks very, very, much!
Brad