Masking a web address in a URL
Hi:
On my site, I'm providing links to other products in an frame. But I'd prefer not to include the url to their site in the actual URL that visitors are seeing. I'd rather it just says OwnersWebsite.
The URL currently reads (This is not the actual address: couldn't figure out how to not make it clickable It just shows the parts of the address)):
http://www.mysite.com/frame.php?url=http://www.theirsite.com
I'd like it to read (Again: don't click. This is just meant to show the pieces of the URL):
http://www.mysite.com/frame.php?url=OwnersWebsite
I'm a real PHP novice, but I think I identified the code relating to this issue. (Out of 6000 lines of code -- a victory in itself!!)
if(!empty($d['listing_url']) && $d['listing_swebsite'] == 1){
$website = "<div class=\"blueText\">Website: <a href=\"{urlroot}frame.php?url=".$d['listing_url']."\" target=\"_blank\">Visit our Website</a></div>";
}
I'm thinking something needs to be added to this part of the action...
".$d['listing_url']."
Thanks in advance for your help and patience with someone just starting to learn PHP.
Jami