in reply to Re: Detecting a post via cgi
in thread Detecting a post via cgi

Thanks for the information, but I am unable to get the QUERY_STRNG to be other then "", any thoughts
my @referers; my $referers; . . . if ($ENV{QUERY_STRING} ne "") { if ($ENV{'HTTP_REFERER'}) { foreach $referer (@referers) { if ($ENV{'HTTP_REFERER'} =~ m|https?://([^/]*)$referer +|i) { &begin_data_parse; } } } else { print "</b>Data Passed Failed Source Check</b>"; } } else { &form; }
it just keeps calling &form......

Replies are listed 'Best First'.
Re: Re: Re: Detecting a post via cgi
by cbro (Pilgrim) on May 28, 2003 at 15:17 UTC
    Put QUERY_STRING in quotes just as you did with HTTP_REFERER.