so, if a visitor comes to your site from example.com you'd want to display one phone number, but if they come from otherexample.net you'd want a different number to be shown?
You can do this in php (probably w/javascript too, but not my specialty) fairly easily.
PHP Code:
<?php
if(strstr('example.com', $_SERVER['HTTP_REFERER'])){ $phone = '1(234)567-8910'; }
else{ $phone = '1(019)876-5432'; }
echo $phone;
?>
Of course, I'm not sure what your intention is, so I don't know if this would be a good solution or not. Why do you want different numbers to be displayed?
In addition, HTTP_REFERER is set by the user agent, so sometimes it is wrong, faked, and/or missing. Basically, it can't really be trusted for important issues.
Bookmarks