View Single Post
Old 2012-02-29, 10:29 PM   #4
cd34
a.k.a. Sparky
 
cd34's Avatar
 
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
if you just delete the first condition, if the referrer is empty, it would do your include. My guess at your intention was to include the local code if it was a typein/bookmark or local site referrer, and include the /path/to/file.html if it was a remote referrer.

|| ($referrer=="") )

says: or, the referrer is empty

if you want to include the INSERT CODE for local hits + bookmarks/typeins, you want to use the || ($referrer=="") ) version. If you want only want to display INSERT CODE for local hits, and bookmarks/typeins/remote referrers get the /path/to/file.html, then just removing the isset() condition would do that.
__________________
SnapReplay.com a different way to share photos - iPhone & Android
cd34 is offline   Reply With Quote