Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

data being "lost" from add.html

Quote Reply
data being "lost" from add.html
Hi,
I've added two new fields (city, missing_location) to my links table and the add.html. But when data is entered in the add.html it is not actually being transfered to the database. The rest of the add process works, and when I validate the link I can add these lost fields. But I don't know why the data for these new fields is being lost.

Should the %db_def in Links.def match the %db_def in Validate.def? I believe this may be causing the problem since my two new fields are not listed in Validate.def Here's the last few lines of each:

Links.def
%db_def = (

ReceiveMail => ['15', 'CHAR', '0', '3', '0', 'No', 'Yes|No', '0'],
city => ['16', 'CHAR', '25', '35', '0', '', '', '2'],
missing_location => ['17', 'CHAR', '35', '45', '0', '', '', '0']
);

Validate.def
%db_def = (
ReceiveMail => ['16', 'CHAR', '0', '3', '1', 'Yes', 'Yes|No'],
Mode => ['17', 'CHAR', '0', '8', '1', 'Validate', 'Validate|Modify']
);

If they do need to be in sequence, is it possible to initialize the Validate.def so that it reconfigures itself?

Any advice is greatly appreciated.
Subject Author Views Date
Thread data being "lost" from add.html rholmin 2743 Nov 7, 1999, 1:23 PM
Post Re: data being "lost" from add.html
Digital Concepts 2673 Nov 7, 1999, 2:01 PM
Post Re: data being "lost" from add.html
rholmin 2666 Nov 7, 1999, 6:01 PM
Post Re: data being "lost" from add.html
Digital Concepts 2671 Nov 7, 1999, 6:49 PM
Post Re: data being "lost" from add.html
pugdog 2664 Nov 8, 1999, 10:50 AM