How to make a clicka ble image

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
rfcamat
Forum Newbie
Posts: 2
Joined: Tue Mar 15, 2011 8:16 pm

How to make a clicka ble image

Post by rfcamat »

Please help me make the following image clickable. It is currently not clickable. Please advise any change to the php code to make it clickable. Thank you very much.

Code: Select all

<?php

$image = "http://blog.tonerboss.com/wp-content/uploads/2011/03/TB-Banner-600by174banner.jpg";  
Echo "<img src=".$image." Style=width:575px;height:230px;>" ?>
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How to make a clicka ble image

Post by Christopher »

Code: Select all

<?php
$image = "http://blog.tonerboss.com/wp-content/uploads/2011/03/TB-Banner-600by174banner.jpg";  
echo "<a href=\"http://somesite.com\"><img src=\"$image\" style=\"width:575px; height:230px; border:0px;\"></a>";
?>
(#10850)
rfcamat
Forum Newbie
Posts: 2
Joined: Tue Mar 15, 2011 8:16 pm

Re: How to make a clicka ble image

Post by rfcamat »

Thank you Christopher.
Post Reply