Page 1 of 1

php image

Posted: Sun Aug 24, 2008 4:31 pm
by steveoroach
<a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>"><?php echo JText::_(''); ?></a> I'm trying to use an image for a link. Ive tried using <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>"><img scr="file path"></a> and it doesn't work. Is there a correct way. I wouldn't have to do this if spanish characters displayed right

Re: php image

Posted: Sun Aug 24, 2008 5:19 pm
by omniuni
To use an image for a link, you need to put <img src="Path_to_File.jpg">

If you want this to display on a condition, for example if "view=remind"

Code: Select all

 
<?php
 
if($_GET['view'] == "remind"){
  echo '
   <img src="path_to_image">
   ';
}
 
?>