bad referrer errors in aformmail on PHP 5 server (SOLUTION)

Discussion in 'Troubleshooting' started by billwinkle, May 22, 2008.

  1. billwinkle

    billwinkle New Member

    Joined:
    May 21, 2008
    Messages:
    1
    If you get a bad referrer error even on a referrer in your referrers array if your site is on a PHP 5 server.

    The server variable:
    $HTTP_REFERER
    has been replaced with: :eek:
    $_SERVER['HTTP_REFERER']

    Merely replace the line:
    $ref = parse_url($HTTP_REFERER);

    with

    $ref = parse_url($_SERVER['HTTP_REFERER']);

    Tada! :) :cool:

    Brought to you by: www.billwinkle.org/cdg

Share This Page