shaunbaird Posted May 26, 2008 Share Posted May 26, 2008 I am trying to make an image hyperlink to a "referral link" The text links at the bottom of the code work 100% fine but I cant get the image to link.. thanks <center> <a href=\"register.php?r=".$elref."\">";?><img src="images/meyie-splash4.jpg"></img></a> </center> <center> <p class="img-left"><?php echo" <a href=\"register.php?r=".$elref."\">";?>Click here to find out more about this</a><br> <class="img-left"><?php echo" <a href=\"register.php?r=".$elref."\">";?>free, no-nonsense get-paid-to-click website!</a></p> </center> Link to comment https://forums.phpfreaks.com/topic/107323-solved-how-to-make-a-quotreferral-linkquot-hyperlink-to-an-image/ Share on other sites More sharing options...
trq Posted May 26, 2008 Share Posted May 26, 2008 Can you please use tags when posting code? Also, the relevent code is important. Your escaping double quotes which makes me believe your echoing this using php, however, you don't show it. Link to comment https://forums.phpfreaks.com/topic/107323-solved-how-to-make-a-quotreferral-linkquot-hyperlink-to-an-image/#findComment-550253 Share on other sites More sharing options...
shaunbaird Posted May 26, 2008 Author Share Posted May 26, 2008 sorry! <?php include ('headerblank2.php'); ?> <p> </p> <?php $ver = $HTTP_HOST.$PHP_SELF; echo $ver; ?> <p> </p> <p> </p> <center> <a href=\"register.php?r=".$elref."\">";?><img src="images/meyie-splash4.jpg"></img></a> </center> <center> <p class="img-left"><?php echo" <a href=\"register.php?r=".$elref."\">";?>Click here to find out more about this</a><br> <class="img-left"><?php echo" <a href=\"register.php?r=".$elref."\">";?>free, no-nonsense get-paid-to-click website!</a></p> </center> Link to comment https://forums.phpfreaks.com/topic/107323-solved-how-to-make-a-quotreferral-linkquot-hyperlink-to-an-image/#findComment-550255 Share on other sites More sharing options...
shaunbaird Posted May 26, 2008 Author Share Posted May 26, 2008 Its oka I fixed it - I just replaced the text with the img src code thx anyway Link to comment https://forums.phpfreaks.com/topic/107323-solved-how-to-make-a-quotreferral-linkquot-hyperlink-to-an-image/#findComment-550268 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.