#!/usr/bin/perl use CGI qw(:standard); my ($year) = param("yr"); my ($exclusive) = param("ex"); $temp = param("ppl"); $temp =~ s/\(/\\\(/gi; $temp =~ s/\)/\\\)/gi; my (@people) = split(/xyz/, $temp); #my (@people) = split(/xyz/, ""); print "Content-type: text/html\n\n"; $holdMe = searchPics($exclusive, $year, @people); if ($holdMe) { print($holdMe); } else { print "
Your search turned up $onWeb pictures. Also, there are another $offWeb pictures matching your criteria that are currently offline.
"; } elsif ($onWeb && !$offWeb) { $stringOut .= "Your search turned up $onWeb pictures.
"; } elsif (!$onWeb && $offWeb) { $stringOut .= "Your search returned no pictures, but there are $offWeb pictures matching your search that are currently offline.
"; } elsif (!$onWeb && !$offWeb) { $stringOut .= "There were no pictures found matching your search criteria.
"; } if ($offWeb) { $stringOut .= "If you are interested in viewing pictures that are currently offline, please contact Nathan via e-mail.
"; } foreach (@results) { $stringOut .= "