This is the only part of the original *.pl file I've altered:
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = 'barbisanders@actionmechanics.com';
@referers = qw(www.actionmechanics.com);
@allow_mail_to = qw(barbisanders@actionmechanics.com);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/MMC/css/MMC_general.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
It works fine on most computers from a variety of home and office locations, but one particular doctor's office is getting the 'bad referer' error, even though I have the $allow_empty_ref set to 1. Any suggestions?
screenshot with error message
Logged In: YES
user_id=1951481
Originator: YES
Cr@p. I copied/pasted from the wrong file. Here is the revised portion of code from the correct *.pl file:
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = '/usr/lib/sendmail -oi -t';
$postmaster = 'info@mechanicsvillemedicalcenter.com';
@referers = qw(www.mechanicsvillemedicalcenter.com localhost);
@allow_mail_to = qw(info@mechanicsvillemedicalcenter.com localhost);
@recipients = ();
%recipient_alias = ();
@valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
$locale = '';
$charset = 'iso-8859-1';
$date_fmt = '%A, %B %d, %Y at %H:%M:%S';
$style = '/css/MMC_general.css';
$no_content = 0;
$double_spacing = 1;
$wrap_text = 0;
$wrap_style = 1;
$address_style = 0;
$send_confirmation_mail = 0;
$confirmation_text = <<'END_OF_CONFIRMATION';
-Barbi Sanders