$db_key='AlumniID'
$db_key_track=1
posn 0 of db_def simply changed from 'ID' to 'AlumniID'
In html.pl sub html_record_form I've got
Code:
print qq|
<TABLE WIDTH="450" CELLPADDING=0 CELLSPACING=0 BORDER=1 BACKGROUND="http://www.flash.net/~murgnam/ll1.gif">
<TR><TD ALIGN="Right" VALIGN="TOP"><$font>AlumniID:</FONT></TD>
<TD VALIGN="TOP">
<INPUT TYPE="TEXT" NAME="AlumniID" SIZE="3" VALUE="$rec{'AlumniID'}" MAXLENGTH="5"></TD></TR>
...
and in sub html_record_long I've got
Code:
# <-- Start of record display -->
my $font_color = 'Font face="Verdana, Arial, Helvetica" Size=2 Color=#003399';
print qq|
<TABLE WIDTH="500" CELLPADDING=0 CELLSPACING=0 BORDER=1 ALIGN=CENTER BACKGROUND="http://www.flash.net/~murgnam/ll1.gif">
<tr><td valign="top" rowspan="3">|;
# to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">|;
last GRAPHIC;
}
}
print qq|</td>
<TD COLSPAN="15">Title:</TD>
<TD COLSPAN="10">$rec{'Title'}</TD>
...
Note in the long format I "don't" have AlumniID, as that only confuses the alumni -- just need it for my purposes ... but then, I "guess" that could be my problem?