Thanks, I have links.html set up like that. Not sure how you can say I did not have to add a field though. Perhaps I am missing something here as Details seems to work find now... unless, as I use other modules later on I might run into a problem with how I have it set up? The original (and current) resource template (add.cgi) has 7 fields being passed.
Title:
URL:
Category:
Short Description:
Full Details:
Contact Name:
Contact Email
<<<
Upon testing I found the Short Description passed into the db Description field... but the Full Details passes into Never.. Never.. land. This is why I added the details field; to catch the "Detail" variable in the DB... that was passed from the add.cgi The current links.def looked like this>>
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes'],
<<<<<<<<
OH! you are right about the $details_cnt... The habit just comes from my old program schooling days. When I increment a variable I like to decribe it as such for readability (and an easy reminder that it is a counter (or flag) when used in other parts of my programs. Hope this did not change the results here or in any other modules?!@ I come from an old Basic programing background so I determine the expression of "=>" meaning "equal to or greater than" expression. I am still trying to determine Perls high-leveled-hidden meanings of certain code usages.
Thanks for your time on this.
[This message has been edited by timryan (edited July 10, 1999).]