sub build_record_page { my (%record) = @_; my ($val) = ""; my ($html) = qq~~; foreach $obj (@db_fields) { if ($obj eq $db_key) { next; } $html .= qq~~; } $html .= "
Record
$db_name{$obj}~; if ($db_type{$obj} eq "text") { # Makes the text box if ($record{$obj}) { $val = qq~ VALUE="$record{$obj}"~; } else { $val = ""; } $html .= qq~~; } if ($db_type{$obj} eq "drop") { # Makes the dropdown box if ($record{$obj}) { $val = qq~ VALUE="$record{$obj}"~; } else { $val = ""; } $html .= qq~~; } $html .= qq~

"; print $html; }