Jump to content

dhaughey

New Members
  • Posts

    2
  • Joined

  • Last visited

dhaughey's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thank you so much for your help. Using stripos was what I needed. This is the amended code: if (stripos($siteurl, "$urllink")) { $urllink2 = "$siteurl"; //echo "<br /><b>Page being Referred</b>: <a href=$urllink2>$urllink2</a>\n"; } Thanks, Duncan
  2. I have the following function, which I'm struggling to convert: /******************************************************/ function start() { global $dpath, $rb_head, $rb_foot, $siteurl; /******************************************************/ include("$dpath$rb_head"); $ip = getenv ("REMOTE_ADDR"); $urllink = getenv("HTTP_REFERER"); if (!ereg("$siteurl", "$urllink")) { $urllink2 = "$siteurl"; //echo "<br /><b>Page being Referred</b>: <a href=$urllink2>$urllink2</a>\n"; } else { $urllink2 = "$urllink"; //echo "<br /><b>Page being Referred</b>: <a href=$urllink2>$urllink2</a>\n"; } include("rb_form.php"); crkdo(); include("$dpath$rb_foot"); } Any help would be appreciated. Duncan
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.