cannot remove $base_url address from a link There is a Ads block in my website in which some websites logo and their address are placed in there. I created a content type for it , called Ads (and also a view Ads__view). it has two fields : 1.link 2.logo . I created a slide show using slideShow module and it slides the logos. I want my website to redirect to these websites when user clicks on any of them, so I created a page called views-view-fields--Ads__view.tpl.php and this is the code of it :

&lt;?php 
$address = strip_tags($fields['field_Ads_link']-&gt;content);
?&gt;
&lt;a href="&lt;?php print $address ?&gt;"&gt;&lt;?php print $fields['field_Ads_photo']-&gt;content; ?&gt;&lt;/a&gt; 


the problem is $base_url of my website is attached at the beginning of the  ($fields['field_Ads_link']-&gt;content for example www.google.com will be www.mywebsite.com/www.google.com . how can I remove this attachment ?
You need to prefix http:// with your link. If you will not add prefix http:// with your link, Drupal will treat this as internal url of Drupal site.

So, you should add url http://www.google.com in your content.

Or you can use Link module to create a link field.


  With link module links can be added easily to any content types and
  profiles and include advanced validating and different ways of storing
  internal or external links and URLs. It also supports additional link
  text title, site wide tokens for titles and title attributes, target
  attributes, css class attribution, static repeating values, input
  conversion, and many more.