I am trying to get a image to display in a hidden area, this is a section of code I have copied from another page that someone else made. So it all works, you click the button and the hidden area appears and I can get data from the table I made to display and change the css around that, no problem.
$tmp .= $html->tag('span',$html->tag('h3',
The complete code is below, but the line above is where I am working. This Is the start of the hidden area. What I would like to do is have the img image tag inside the span tag. However all my code does, at this time, is to print/echo the location I have put in the database but not display the image. I am not sure if this is something I have done wrong with where I have put the file, webroot/img/events/tempimg.jpg, what is does print is ‘img/events/tempimg.jpg’. From that I take it my image is in the right place just that I have opened the tags in the wrong way. Or would it be better to close the span tag 1st this open the img tag, if so how would I make sure it only appears in the hidden area and not on the main page.
$tmp = $html->tag('strong', $NewDate. " - " . $EventTitle.'<br />');
$tmp .= $html->tag('div', substr($EventLoc, 0, 10).'... <br />', array('class' => 'EventInfo'));
$tmp .= $html->tag('span',$html->tag('h3',
__d('EventsHeader', $e['Team']['name'] . ' Events ', true), array('class' => 'EventInfos'))
.$html->tag('img', $EventImage, array('class' => 'EventHide hide'))
.nl2br($EventInfo . ' testing more......'), array('class' => 'EventHide hide')
);
Many Thanks for any help
Glenn Curtis.
Just in case this helps anyone else, this is now I have now built the tag up, with not using the HTML helper
Glenn.