#!/usr/bin/perl
###########################################################################
&parse_form;
$surname=$FORM{'surname'};
#
# Display the page
#
print "Content-type: text/html\n\n";
print "
Death Certificates, Mercer Co. Ky\n\n";
print "\n\n";
open (MENU, "/u1/home0001/usa/ky/kymercer/public_html/menu.txt");
while (\n";
#
# Select which records to print
#
if ($surname) {
print "
If no certs appear below, there are none that match the name that ";
print "you selected. Either try another name, or check back again later.\n\n";
print "
Name entered: $surname
\n\n";
open (DB, "/u1/home0001/usa/ky/kymercer/public_html/datfiles/dc.db");
while () {
chop;
($cert,$name,$maiden,$born,$birthplace,$died,$status,$father,$fborn,$mother,$mborn,$informant,$inf_of,$buried,$cause,$spouse)=split(/:/,$_);
if (($name=~/^$surname/i) || ($maiden=~/^$surname/i) || ($father=~/^$surname/i) || ($mother=~/^$surname/i) || ($informant=~/^$surname/i) || ($spouse=~/^$surname/i)) {
push(@list,"$name:$cert:$maiden:$born:$birthplace:$died:$status:$father:$fborn:$mother:$mborn:$informant:$inf_of:$buried:$cause:$spouse");
}
}
foreach $item (sort @list) {
($name,$cert,$maiden,$born,$birthplace,$died,$status,$father,$fborn,$mother,$mborn,$informant,$inf_of,$buried,$cause,$spouse)=split(/:/,$item);
$name="$name<\/b><\/font>" if ($name=~/^$surname/i);
$maiden="$maiden<\/b><\/font>" if ($maiden=~/^$surname/i);
$father="$father<\/b><\/font>" if ($father=~/^$surname/i);
$mother="$mother<\/b><\/font>" if ($mother=~/^$surname/i);
$informant="$informant<\/b><\/font>" if ($informant=~/^$surname/i);
print "\n";
print "$name | Cert #: $cert |
\n";
print "Born: $born | Place: $birthplace |
\n";
print "Died: $died Mercer Co. | Cause: $cause |
\n";
print "Marital Status: $status | Spouse: $spouse |
\n";
print "Father: $father | Born: $fborn |
\n";
print "Mother: $mother | Born: $mborn |
\n";
print "Informant: $informant | of $inf_of |
\n";
print "Buried: $buried |
\n";
print "
\n\n";
}
}
print "
Pam Carey Ison / Junction City, KY / kymercer\@roadrunner.com\n";
print "