$TRACKER = $ENV{'HTTP_REFERER'}; if (!($TRACKER)) { $TRACKER = $ENV{'REMOTE_ADDR'};} #added if (!($TRACKER)) { $TRACKER = ""; } # why would these ENV variables BOTH be blank ??? $client_email = $query->param('email'); #added if (!($client_email)) { $client_email=""; } chomp($client_email); #added to other query vars...