hi guys,
a form on my site started to stop working for some reason, i get the error from the referrer section, when i try to send the form it says " is not authorized to use this form"
function check_referer()
{
/**
* check_referer();
*/
$referer = $_SERVER["HTTP_REFERER"];
foreach ($this->referers_array as $key=>$value) {
if ((eregi("^http://$value", $referer)) ||
(eregi(“^https://$value”, $referer))) {
return true;
}
}
$this->error_message = "<b>$referer</b> is not unauthorized to
use this
form.<br>
";
$this->display_error();
return false;
}
thanks